summaryrefslogtreecommitdiff
path: root/src/fr-command-lrzip.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-25 13:34:43 +0200
committerraveit65 <[email protected]>2019-09-02 20:18:40 +0200
commit793ca81eb4d43c1eb347dfa4567618006521e278 (patch)
tree9521a85a5efc3a4e262bad3dafe1d209eb231f94 /src/fr-command-lrzip.c
parentdfef20fc6a0300f09f542a8c87c30aa6352771ac (diff)
downloadengrampa-793ca81eb4d43c1eb347dfa4567618006521e278.tar.bz2
engrampa-793ca81eb4d43c1eb347dfa4567618006521e278.tar.xz
fr-command-lrzip: Fix empty string check
str is empty: if (*str == '\0') {...}
Diffstat (limited to 'src/fr-command-lrzip.c')
-rw-r--r--src/fr-command-lrzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-command-lrzip.c b/src/fr-command-lrzip.c
index 7c02128..74cb9fd 100644
--- a/src/fr-command-lrzip.c
+++ b/src/fr-command-lrzip.c
@@ -76,7 +76,7 @@ list__process_line (char *line,
fdata->dir = FALSE;
fdata->link = NULL;
- if (fdata->name == 0)
+ if (*fdata->name == '\0')
file_data_free (fdata);
else
fr_command_add_file (comm, fdata);