[glib: 1/2] GWin32AppInfo: Fix missing initialization
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] GWin32AppInfo: Fix missing initialization
- Date: Mon, 2 Aug 2021 14:36:41 +0000 (UTC)
commit ae5e016edc641129ccf20130e6b484ce2ec333c0
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]