summaryrefslogtreecommitdiff
path: root/src/rar-utils.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-21 15:31:24 +0100
committerinfirit <[email protected]>2014-11-22 20:25:29 +0100
commited78c6d2d8e5ff3b8ae7edd633cce3a266e58d5d (patch)
treeb9924ec79e5b4cc15dcc15800aa6a72fbee0fe97 /src/rar-utils.c
parentbfd0f05763c3baa877f696ee5b20f7d5e2f740c2 (diff)
downloadengrampa-ed78c6d2d8e5ff3b8ae7edd633cce3a266e58d5d.tar.bz2
engrampa-ed78c6d2d8e5ff3b8ae7edd633cce3a266e58d5d.tar.xz
FrCommand: set the filename before each call to fr_command_* functions
this change will allow the command to use a different filename from the one pointed to by the local_copy attribute. Based on FR commit: 5e48592fb49d1f5ce713fcd77d44acd664de4b6a From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/rar-utils.c')
-rw-r--r--src/rar-utils.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/rar-utils.c b/src/rar-utils.c
index 0cb34e2..fb67ef9 100644
--- a/src/rar-utils.c
+++ b/src/rar-utils.c
@@ -119,16 +119,13 @@ rar_check_multi_vomule (FrCommand *comm)
if (volume_name != NULL) {
GFile *parent;
- GFile *child;
- char *volume_filename;
+ GFile *volume_file;
parent = g_file_get_parent (file);
- child = g_file_get_child (parent, volume_name);
- volume_filename = g_file_get_path (child);
- fr_command_set_multi_volume (comm, volume_filename);
+ volume_file = g_file_get_child (parent, volume_name);
+ fr_command_set_multi_volume (comm, volume_file);
- g_free (volume_filename);
- g_object_unref (child);
+ g_object_unref (volume_file);
g_object_unref (parent);
}