[file-roller/wip/jtojnar/engrampa-backports: 10/24] command-lrzip: Fix empty string check str is empty: if (*str == '\0') {...}
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/jtojnar/engrampa-backports: 10/24] command-lrzip: Fix empty string check str is empty: if (*str == '\0') {...}
- Date: Wed, 27 Jul 2022 19:54:32 +0000 (UTC)
commit f802a26a09a273e923c9be9ed9294600fdfaf429
Author: rbuj <robert buj gmail com>
Date: Sun Aug 25 13:34:43 2019 +0200
command-lrzip: Fix empty string check
str is empty: if (*str == '\0') {...}
Cherry picked from
https://github.com/mate-desktop/engrampa/commit/793ca81eb4d43c1eb347dfa4567618006521e278
src/fr-command-lrzip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/fr-command-lrzip.c b/src/fr-command-lrzip.c
index ae3427f8..c52e9d9a 100644
--- a/src/fr-command-lrzip.c
+++ b/src/fr-command-lrzip.c
@@ -78,7 +78,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_archive_add_file (FR_ARCHIVE (comm), fdata);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]