[glib: 1/2] gwin32appinfo: Fix a potential free of an uninitialised variable



commit 29e8f5795d65796a29876a792342ad9ee9361bea
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Jan 7 10:25:46 2019 +0000

    gwin32appinfo: Fix a potential free of an uninitialised variable
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Closes: #1637

 gio/gwin32appinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index 499bbb351..9f335b370 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]