libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 2/2] Do not allow the reference to the local va


From: Konstantin Belousov
Subject: [Libunwind-devel] [PATCH 2/2] Do not allow the reference to the local var to outlive the local var scope.
Date: Mon, 17 Sep 2012 17:39:15 +0300

From: Konstantin Belousov <address@hidden>

---
 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 17a1b61..4708293 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;
-- 
1.7.11.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]