From 426e0a1e83957fd1b351a2828e667e1b7746f776 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 21 Nov 2014 15:57:18 +0100 Subject: improved readability of code Based on FR commit: c9ea52f8a3633a97ef64af1e18f9ff5b8e1474a9 From: Paolo Bacchilega --- src/fr-archive.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fr-archive.c b/src/fr-archive.c index 57bf8e3..ddaefc9 100644 --- a/src/fr-archive.c +++ b/src/fr-archive.c @@ -1583,7 +1583,7 @@ fr_archive_add (FrArchive *archive, fr_archive_stoppable (archive, fr_archive_add_is_stoppable (archive)); - tmp_base_dir = g_strdup (base_dir); + /* dest_dir is the destination folder inside the archive */ if ((dest_dir != NULL) && (*dest_dir != '\0') && (strcmp (dest_dir, "/") != 0)) { const char *rel_dest_dir = dest_dir; @@ -1600,8 +1600,10 @@ fr_archive_add (FrArchive *archive, new_file_list = g_list_prepend (new_file_list, g_build_filename (rel_dest_dir, filename, NULL)); } } - else + else { + tmp_base_dir = g_strdup (base_dir); new_file_list = path_list_dup(file_list); + } /* if the command cannot update, get the list of files that are * newer than the ones in the archive. */ -- cgit v1.2.1