diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c index 17a1b611..4708293e 100644 --- a/tests/test-ptrace.c +++ b/tests/test-ptrace.c @@ -178,7 +178,7 @@ main (int argc, char **argv) if (argc == 1) { - char *args[] = { "self", "/bin/ls", "/usr", NULL }; + static char *args[] = { "self", "/bin/ls", "/usr", NULL }; /* automated test case */ argv = args;