gwin32appinfo: Fix a potential free of an uninitialised variable

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1637
This commit is contained in:
Philip Withnall 2019-01-07 10:25:46 +00:00
parent 245279e834
commit 29e8f5795d

View File

@ -1426,7 +1426,7 @@ collect_capable_apps_from_clients (GPtrArray *capable_apps,
GWin32RegistrySubkeyIter subkey_iter;
GWin32RegistryKey *system_client_type;
GWin32RegistryValueType default_type;
gunichar2 *default_value;
gunichar2 *default_value = NULL;
gunichar2 *client_name;
gsize client_name_len;