[gnome-commander] null the gFileInfoList before reading in a directory



commit 57f03411707f6697b8a82fdb43b8bba4eb682cf7
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Thu Jun 3 19:15:28 2021 +0200

    null the gFileInfoList before reading in a directory

 src/dirlist.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/dirlist.cc b/src/dirlist.cc
index 880bea80a..7fda99736 100644
--- a/src/dirlist.cc
+++ b/src/dirlist.cc
@@ -187,6 +187,7 @@ void dirlist_list (GnomeCmdDir *dir, gboolean visualProgress)
     g_return_if_fail (GNOME_CMD_IS_DIR (dir));
 
     dir->infolist = NULL;
+    dir->gFileInfoList = nullptr;
     dir->list_handle = NULL;
     dir->list_counter = 0;
     dir->list_result = GNOME_VFS_OK;


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