diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2021-08-02 14:19:35 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2021-08-02 14:19:35 +0000 |
commit | ae5e016edc641129ccf20130e6b484ce2ec333c0 (patch) | |
tree | cb197f2d6a5738ae749c1cb10066a9febbcdffb9 | |
parent | 92bdc92d6dcebdd2bff25f29ecfa8be5814fb9c7 (diff) | |
download | glib-ae5e016edc641129ccf20130e6b484ce2ec333c0.tar.gz |
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.
-rw-r--r-- | gio/gwin32appinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |