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:
Руслан Ижбулатов 2021-08-02 14:19:35 +00:00 committed by Luca Bacci
parent d0ef6399d4
commit 771a6e557a
No known key found for this signature in database
GPG Key ID: 8E3C8D989C98883D

View File

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