[Spice-devel] [[spice] 7/9] Fix -Wnonnull
Fabiano Fidêncio
fidencio at redhat.com
Mon Sep 1 06:45:40 PDT 2014
---
server/tests/test_display_base.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index b197d1b..02f3378 100644
--- a/server/tests/test_display_base.c
+++ b/server/tests/test_display_base.c
@@ -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;
}
--
1.9.3
More information about the Spice-devel
mailing list