[file-roller] rar: make a condition clearer



commit 06fbc9da6ae4740159831507edaff1fa296c15e9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Sep 9 10:49:06 2013 +0200

    rar: make a condition clearer

 src/fr-command-rar.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/fr-command-rar.c b/src/fr-command-rar.c
index e15e1af..850a6cf 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -130,11 +130,11 @@ parse_name_field (char         *line,
 
        fdata->encrypted = (line[0] == '*') ? TRUE : FALSE;
 
-       if (rar_comm->rar4_odd_line)
-               name_field = g_strdup (line + 1);
-       else
+       if (rar_comm->rar5)
                /* rar-5 output adds trailing spaces to short file names :( */
                name_field = g_strchomp (g_strdup (_g_str_get_last_field (line, 8)));
+       else
+               name_field = g_strdup (line + 1);
 
        if (*name_field == '/') {
                fdata->full_path = g_strdup (name_field);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]