lib/gshadow.c: build_list(): Compact ++ into previous statement
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
3feff7ae5b
commit
64ab7221fb
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user