[glib/glib-2-68: 4/6] GWin32AppInfo: Fix missing initialization
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-68: 4/6] GWin32AppInfo: Fix missing initialization
- Date: Mon, 9 Aug 2021 13:01:32 +0000 (UTC)
commit 771a6e557a9a52953aa6f4c4c907ab1049d71009
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Mon Aug 2 14:19:35 2021 +0000
GWin32AppInfo: Fix missing initialization
The value should be initialized to NULL before calling
g_win32_registry_key_get_value_w(), to ensure that cleanup
can be done unconditionally afterward.
gio/gwin32appinfo.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index 4074f402c..3468dfee0 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -1629,6 +1629,7 @@ process_uwp_verbs (GList *verbs,
continue;
}
+ acid = NULL;
got_value = g_win32_registry_key_get_value_w (key,
g_win32_registry_get_os_dirs_w (),
TRUE,
@@ -3634,6 +3635,7 @@ grab_registry_string (GWin32RegistryKey *handler_appkey,
if (*destination != NULL)
return;
+ value = NULL;
if (g_win32_registry_key_get_value_w (handler_appkey,
NULL,
TRUE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]