commit 1685b556f23b8c4782e91e020ad74ffcda8010fb
parent 4a11ff268e65b47811079b202b2d109037e47ca0
Author: sin <sin@2f30.org>
Date: Thu, 22 Aug 2019 16:39:00 +0100
Fix clang warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spawn.c b/spawn.c
@@ -44,7 +44,7 @@ spawnlp(char *dir, char *file, char *argv0, ...)
va_start(ap, argv0);
argv[0] = argv0;
- for (argc = 1; argv[argc] = va_arg(ap, char *); argc++)
+ for (argc = 1; (argv[argc] = va_arg(ap, char *)) != (void *)0; argc++)
;
argv[argc] = NULL;
va_end(ap);