From: Martin Matuska Date: Sun, 12 Jan 2020 07:52:33 +0000 (+0100) Subject: Fix erroneous use of archive_string_empty() macro X-Git-Tag: v3.4.2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aaf7c5e88d495a0705e965519bfe9096765df6d;p=thirdparty%2Flibarchive.git Fix erroneous use of archive_string_empty() macro Found by LGTM.com code analysis --- diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c index 183ca1e87..f7c96bffa 100644 --- a/libarchive/archive_read_disk_posix.c +++ b/libarchive/archive_read_disk_posix.c @@ -1110,8 +1110,7 @@ next_entry(struct archive_read_disk *a, struct tree *t, "%s", delayed_str.s); } } - if (!archive_string_empty(&delayed_str)) - archive_string_free(&delayed_str); + archive_string_free(&delayed_str); return (r); }