From 37ca061e40f88557940f9547f4682629aa4e0130 Mon Sep 17 00:00:00 2001 From: Loic Le Page Date: Wed, 19 Jan 2022 18:50:24 +0100 Subject: [PATCH] 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;