[gnome-commander/ConfigurableFileListColumns] Initialize variable, go through all elements of a list



commit 721df1de6be205f2e59321c4a07086a33dfa4173
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat May 4 21:30:53 2019 +0200

    Initialize variable, go through all elements of a list

 src/gnome-cmd-file-list.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 76d70338..cf3149ee 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -731,8 +731,8 @@ void GnomeCmdFileList::create_column_titles()
 
     for (guint ii = COLUMN_ICON; ii < NUM_COLUMNS; ii++)
     {
-        guint actualColumn;
-        for (guint jj = COLUMN_NAME; jj < NUM_COLUMNS; jj++)
+        guint actualColumn {0};
+        for (guint jj = COLUMN_ICON; jj < NUM_COLUMNS; jj++)
         {
             if (ii == gnome_cmd_data.fileListColumnLayouts[jj].position)
                 actualColumn = jj;


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