[easytag] Use return value to speed up force saving files



commit 02b86bb625d1b3d3c3182bd2cb67e0af97eee063
Author: David King <amigadave amigadave com>
Date:   Mon Sep 15 20:49:32 2014 +0100

    Use return value to speed up force saving files
    
    The variable assignment was lost during refactoring.
    
    Found with Coverity (CID 1238689).

 src/easytag.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 6d38a5a..f026e13 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -331,10 +331,10 @@ Save_List_Of_Files (GList *etfilelist, gboolean force_saving_files)
             /* ET_Display_File_Data_To_UI ((ET_File *)l->data);
              * Use of 'currentPath' to try to increase speed. Indeed, in many
              * cases, the next file to select, is the next in the list. */
-            et_application_window_browser_select_file_by_et_file2 (window,
-                                                                   (ET_File *)l->data,
-                                                                   FALSE,
-                                                                   currentPath);
+            currentPath = et_application_window_browser_select_file_by_et_file2 (window,
+                                                                                (ET_File *)l->data,
+                                                                                FALSE,
+                                                                                currentPath);
 
             fraction = (++progress_bar_index) / (double) nb_files_to_save;
             et_application_window_progress_set_fraction (window, fraction);


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