lib/gshadow.c: build_list(): Compact ++ into previous statement

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-11-04 21:59:27 +01:00
committed by Serge Hallyn
parent 3feff7ae5b
commit 64ab7221fb

View 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 *);