[file-roller] improved readability of code
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] improved readability of code
- Date: Tue, 19 Jun 2012 18:40:18 +0000 (UTC)
commit c9ea52f8a3633a97ef64af1e18f9ff5b8e1474a9
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jun 18 11:29:15 2012 +0200
improved readability of code
src/fr-archive.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-archive.c b/src/fr-archive.c
index c1d6eef..3e5bdca 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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]