Fix -Wnonnull

This commit is contained in:
Fabiano Fidêncio 2014-09-01 13:55:56 +02:00
parent 63180f6ce3
commit fb938c210a

View File

@ -88,10 +88,11 @@ static void regression_test(void)
pid = fork();
if (pid == 0) {
char buf[PATH_MAX];
char *argv[] = { NULL };
char *envp[] = {buf, NULL};
snprintf(buf, sizeof(buf), "PATH=%s", getenv("PATH"));
execve("regression_test.py", NULL, envp);
execve("regression_test.py", argv, envp);
} else if (pid > 0) {
return;
}