From 80e852cb38970f76ed59059012cc29c6369ef7f8 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 17 Sep 2012 17:39:15 +0300 Subject: [PATCH] Do not allow the reference to the local var to outlive the local var scope. --- tests/test-ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;