From: Rose Date: Mon, 19 May 2025 19:16:18 +0000 (-0400) Subject: *s != '\0' is redundant X-Git-Tag: v3.8.0~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2621%2Fhead;p=thirdparty%2Flibarchive.git *s != '\0' is redundant Not that this does anything to codegen probably, but it is still redundant. --- diff --git a/libarchive/archive_cmdline.c b/libarchive/archive_cmdline.c index 2e5428cae..23bb05d64 100644 --- a/libarchive/archive_cmdline.c +++ b/libarchive/archive_cmdline.c @@ -71,7 +71,7 @@ get_argument(struct archive_string *as, const char *p) archive_string_empty(as); /* Skip beginning space characters. */ - while (*s != '\0' && *s == ' ') + while (*s == ' ') s++; /* Copy non-space characters. */ while (*s != '\0' && *s != ' ') {