[gnome-panel/wip/muktupavels/default-layout: 5/9] layout: fix -Wshadow warning



commit 479639b6e8bfa0d5091b58a4f027227031365c66
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Dec 16 14:42:55 2019 +0200

    layout: fix -Wshadow warning

 gnome-panel/panel-layout.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-panel/panel-layout.c b/gnome-panel/panel-layout.c
index 98abd2355..20798dc7a 100644
--- a/gnome-panel/panel-layout.c
+++ b/gnome-panel/panel-layout.c
@@ -322,14 +322,14 @@ panel_layout_maybe_append_object_instance_config (GKeyFile    *keyfile,
 
                 g_strfreev (tokens);
         } else {
-                char *key;
+                char *tmp;
 
-                key = g_strdup_printf ("%s%s/%s%s",
+                tmp = g_strdup_printf ("%s%s/%s%s",
                                        path_prefix, unique_id,
                                        PANEL_LAYOUT_OBJECT_CONFIG_SUFFIX,
                                        keyname);
-                panel_dconf_write_sync (key, variant, NULL);
-                g_free (key);
+                panel_dconf_write_sync (tmp, variant, NULL);
+                g_free (tmp);
         }
 
         g_variant_unref (variant);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]