[glib: 6/11] Fix redefinition of local variable in gio/gregistrysettingsbackend.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/11] Fix redefinition of local variable in gio/gregistrysettingsbackend.c
- Date: Thu, 17 Mar 2022 15:13:17 +0000 (UTC)
commit dd96eeee74e21d8bd96150d61bf90b46b6a7df83
Author: Loic Le Page <llepage fluendo com>
Date: Wed Jan 19 18:49:05 2022 +0100
Fix redefinition of local variable in gio/gregistrysettingsbackend.c
gio/gregistrysettingsbackend.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index bae066a0a..a7171a21f 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -1200,7 +1200,7 @@ g_registry_backend_get_writable (GSettingsBackend *backend,
GRegistryBackend *self = G_REGISTRY_BACKEND (backend);
gchar *path_name;
gunichar2 *path_namew;
- gchar *value_name;
+ gchar *value_name = NULL;
HKEY hpath;
LONG result;
@@ -1495,14 +1495,14 @@ registry_cache_update (GRegistryBackend *self,
child_item->readable = TRUE;
if (changed && event != NULL)
{
- gchar *item;
+ gchar *item_path;
if (partial_key_name == NULL)
- item = g_strdup (buffer);
+ item_path = g_strdup (buffer);
else
- item = g_build_path ("/", partial_key_name, buffer, NULL);
+ item_path = g_build_path ("/", partial_key_name, buffer, NULL);
- g_ptr_array_add (event->items, item);
+ g_ptr_array_add (event->items, item_path);
}
g_free (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]