mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-15 20:58:13 +01:00
Do not allow the reference to the local var to outlive the local var scope.
This commit is contained in:
parent
d0cbc51955
commit
80e852cb38
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue