]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/gshadow.c: build_list(): Compact ++ into previous statement
authorAlejandro Colomar <alx@kernel.org>
Mon, 4 Nov 2024 20:59:27 +0000 (21:59 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 6 Dec 2024 03:20:59 +0000 (21:20 -0600)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/gshadow.c

index af0272261bf01ef55164c09c74ad3f55e3500411..5cdc3abe52f81e3ce82d0b79582523eada2da1c6 100644 (file)
@@ -45,8 +45,7 @@ build_list(char *s, char ***lp)
 
        while (s != NULL && *s != '\0') {
                l = XREALLOC(l, n + 1, char *);
-               l[n] = strsep(&s, ",");
-               n++;
+               l[n++] = strsep(&s, ",");
        }
 
        l = XREALLOC(l, n + 1, char *);