[gnome-commander] Initialize list



commit 922ee72028aec333e0f04532a1fb8bbff0d9d940
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Nov 10 22:21:33 2021 +0100

    Initialize list

 src/gnome-cmd-smb-net.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-smb-net.cc b/src/gnome-cmd-smb-net.cc
index cfe721f4..f79e749b 100644
--- a/src/gnome-cmd-smb-net.cc
+++ b/src/gnome-cmd-smb-net.cc
@@ -96,7 +96,7 @@ inline gboolean enumerate_smb_uri (const gchar *uriString, GList **list)
 
 inline GList *get_hosts (const gchar *wg)
 {
-    GList *gFileInfoList;
+    GList *gFileInfoList = nullptr;
 
     gchar *uri_str = g_strdup_printf ("smb://%s", wg);
     auto result = enumerate_smb_uri (uri_str, &gFileInfoList);


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