mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-18 09:30:06 +00:00
Fix -Wnonnull
This commit is contained in:
parent
63180f6ce3
commit
fb938c210a
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user