summaryrefslogtreecommitdiff
path: root/src/fr-command-tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r--src/fr-command-tar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index 7b7ef02..62818a9 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -283,7 +283,6 @@ process_line__generic (char *line,
char *action_msg)
{
FrCommand *comm = FR_COMMAND (data);
- char *msg;
if (line == NULL)
return;
@@ -291,14 +290,15 @@ process_line__generic (char *line,
if (line[strlen (line) - 1] == '/') /* ignore directories */
return;
- msg = g_strconcat (action_msg, file_name_from_path (line), NULL);
- fr_command_message (comm, msg);
- g_free (msg);
-
if (comm->n_files != 0) {
double fraction = (double) ++comm->n_file / (comm->n_files + 1);
fr_command_progress (comm, fraction);
}
+ else {
+ char *msg = g_strconcat (action_msg, file_name_from_path (line), NULL);
+ fr_command_message (comm, msg);
+ g_free (msg);
+ }
}