From ed78c6d2d8e5ff3b8ae7edd633cce3a266e58d5d Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 21 Nov 2014 15:31:24 +0100 Subject: 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 --- src/rar-utils.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/rar-utils.c') 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); } -- cgit v1.2.1