]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
*s != '\0' is redundant 2621/head
authorRose <gfunni234@gmail.com>
Mon, 19 May 2025 19:16:18 +0000 (15:16 -0400)
committerRose <gfunni234@gmail.com>
Mon, 19 May 2025 19:16:18 +0000 (15:16 -0400)
Not that this does anything to codegen probably, but it is still redundant.

libarchive/archive_cmdline.c

index 2e5428cae51688bf9be370d67ac682390bf0a3a6..23bb05d6424af575c9c0938b517c1e10e952e0d5 100644 (file)
@@ -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 != ' ') {