mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
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.
This commit is contained in:
parent
d0ef6399d4
commit
771a6e557a
@ -1629,6 +1629,7 @@ process_uwp_verbs (GList *verbs,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
acid = NULL;
|
||||||
got_value = g_win32_registry_key_get_value_w (key,
|
got_value = g_win32_registry_key_get_value_w (key,
|
||||||
g_win32_registry_get_os_dirs_w (),
|
g_win32_registry_get_os_dirs_w (),
|
||||||
TRUE,
|
TRUE,
|
||||||
@ -3634,6 +3635,7 @@ grab_registry_string (GWin32RegistryKey *handler_appkey,
|
|||||||
if (*destination != NULL)
|
if (*destination != NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
value = NULL;
|
||||||
if (g_win32_registry_key_get_value_w (handler_appkey,
|
if (g_win32_registry_key_get_value_w (handler_appkey,
|
||||||
NULL,
|
NULL,
|
||||||
TRUE,
|
TRUE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user