[glib: 2/11] Fix redefinition of local variable in gio/gsettings.c




commit 37ca061e40f88557940f9547f4682629aa4e0130
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 18:50:24 2022 +0100

    Fix redefinition of local variable in gio/gsettings.c

 gio/gsettings.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index e96c94e11..c2c7bf71d 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -406,12 +406,12 @@ g_settings_real_writable_change_event (GSettings *settings,
 
   for (i = 0; i < n_keys; i++)
     {
-      const gchar *key = g_quark_to_string (keys[i]);
+      const gchar *key_name = g_quark_to_string (keys[i]);
 
-      if (g_str_has_suffix (key, "/"))
+      if (g_str_has_suffix (key_name, "/"))
         continue;
 
-      g_signal_emit (settings, g_settings_signals[SIGNAL_WRITABLE_CHANGED], keys[i], key);
+      g_signal_emit (settings, g_settings_signals[SIGNAL_WRITABLE_CHANGED], keys[i], key_name);
     }
 
   return FALSE;


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