1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-09-27 08:59:28 +02:00

Do not allow the reference to the local var to outlive the local var scope.

This commit is contained in:
Konstantin Belousov 2012-09-17 17:39:15 +03:00 committed by Arun Sharma
parent d0cbc51955
commit 80e852cb38

View file

@ -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;