scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 72f29b44b8b37437c29f1c72cfab5a1624d85dd4
parent 8dad143cff0c2b928a9a95791cfab71b16535400
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 31 Oct 2024 16:21:10 +0100

make: Use NULL to terminate exec array

NULL can be converted to char * without problems.

Diffstat:
Msrc/cmd/scc-make/posix.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/scc-make/posix.c b/src/cmd/scc-make/posix.c @@ -37,7 +37,7 @@ launch(char *cmd, int ignore) int st; pid_t pid; char *name, *shell; - char *args[] = {NULL, "-ec" , cmd, (char *) 0}; + char *args[] = {NULL, "-ec" , cmd, NULL}; extern char **environ; switch (pid = fork()) {