[file-roller: 83/123] fixed crash when converting an archive
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller: 83/123] fixed crash when converting an archive
- Date: Mon, 6 Aug 2012 13:47:50 +0000 (UTC)
commit 58945517a7ca1fac945f473a6d49947b120ed612
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jul 30 10:52:57 2012 +0200
fixed crash when converting an archive
src/fr-archive-libarchive.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c
index 947e829..79e81ca 100644
--- a/src/fr-archive-libarchive.c
+++ b/src/fr-archive-libarchive.c
@@ -1209,7 +1209,10 @@ fr_archive_libarchive_add_files (FrArchive *archive,
add_data = add_data_new ();
base_dir = g_file_new_for_uri (base_dir_uri);
- dest_dir = dest_dir[0] == '/' ? dest_dir + 1 : dest_dir;
+ if (dest_dir != NULL)
+ dest_dir = dest_dir[0] == '/' ? dest_dir + 1 : dest_dir;
+ else
+ dest_dir = "";
for (scan = file_list; scan; scan = scan->next) {
char *relative_pathname = scan->data;
char *full_pathname;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]