[gnome-commander/get_rid_of_xml] Initialize the current file index	variable with -1
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-commander/get_rid_of_xml] Initialize the current file index	variable with -1
- Date: Mon,  3 Dec 2018 15:54:57 +0000 (UTC)
commit 7c0e396542068d694c0e0195c15f156f04ea8bb1
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Nov 24 22:50:04 2018 +0100
    Initialize the current file index variable with -1
 src/gnome-cmd-file-list.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index e97bfca6..fecdb7b1 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -151,7 +151,7 @@ struct GnomeCmdFileList::Private
     GtkWidget *column_pixmaps[NUM_COLUMNS];
     GtkWidget *column_labels[NUM_COLUMNS];
 
-    gint cur_file;
+    gint cur_file = -1;
     GnomeCmdFileCollection visible_files;
     GnomeCmd::Collection<GnomeCmdFile *> selected_files;      // contains GnomeCmdFile pointers, no refing
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]