Fix redefinition of local variable in gio/gsettings.c

This commit is contained in:
Loic Le Page 2022-01-19 18:50:24 +01:00 committed by Loïc Le Page
parent e0ccf08284
commit 37ca061e40

View File

@ -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;