summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2014-09-01 13:55:56 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2014-09-12 18:00:30 +0200
commitfb938c210ac507acb747c4c5126db7e6b12889fa (patch)
tree2bcdfa754755a1449c83c9e6aaf84283ccdead05 /server/tests
parent63180f6ce3266d3b9b6c7319a0aec1f0d4ee7fe3 (diff)
downloadspice-fb938c210ac507acb747c4c5126db7e6b12889fa.tar.gz
spice-fb938c210ac507acb747c4c5126db7e6b12889fa.tar.xz
spice-fb938c210ac507acb747c4c5126db7e6b12889fa.zip
Fix -Wnonnull
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/test_display_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index b197d1bb..02f33786 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;
}