[dia] [warningectomy] Local variable was shadowing parameter
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] Local variable was shadowing parameter
- Date: Sun, 26 Jun 2011 10:48:26 +0000 (UTC)
commit dc92051af829386edd31ac4daf8d1900c92d5cb5
Author: Hans Breuer <hans breuer org>
Date: Fri Jun 24 12:06:16 2011 +0200
[warningectomy] Local variable was shadowing parameter
objects/Misc/diagram_as_object.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/objects/Misc/diagram_as_object.c b/objects/Misc/diagram_as_object.c
index 55d1341..987a3a6 100644
--- a/objects/Misc/diagram_as_object.c
+++ b/objects/Misc/diagram_as_object.c
@@ -353,9 +353,9 @@ _dae_load (ObjectNode obj_node, int version, const char *filename)
dae = (DiagramAsElement*)obj;
if (strlen(dae->filename) && !g_path_is_absolute (dae->filename)) {
gchar *dirname = g_path_get_dirname (filename);
- gchar *filename = g_build_filename (dirname, dae->filename, NULL);
+ gchar *fname = g_build_filename (dirname, dae->filename, NULL);
g_free (dae->filename);
- dae->filename = filename;
+ dae->filename = fname;
g_free (dirname);
/* need to update again with new filenames */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]