[gnome-commander] Define tmpError in each for-loop run



commit 8a14bf6fc86996feb36a8e38df09ef87b56315a1
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Nov 28 22:22:22 2021 +0100

    Define tmpError in each for-loop run

 src/dialogs/gnome-cmd-delete-dialog.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-delete-dialog.cc b/src/dialogs/gnome-cmd-delete-dialog.cc
index 94dad68c..ab8195fc 100644
--- a/src/dialogs/gnome-cmd-delete-dialog.cc
+++ b/src/dialogs/gnome-cmd-delete-dialog.cc
@@ -187,10 +187,9 @@ static gboolean perform_delete_subdirs(GnomeCmdDir *gnomeCmdDir, DeleteData *del
  */
 static gboolean perform_delete_operation_r(DeleteData *deleteData, GList *gnomeCmdFileGList)
 {
-    GError *tmpError = nullptr;
-
     for (GList *gCmdFileGListItem = gnomeCmdFileGList; gCmdFileGListItem; gCmdFileGListItem = 
gCmdFileGListItem->next)
     {
+        GError *tmpError = nullptr;
         if (deleteData->stop)
         {
             return FALSE;


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