# HG changeset patch # User Chocobo1 # Date 1451967910 -28800 # Node ID a0062a354a8094f4fac86a2e42d1ec5fd12d4d6d # Parent 5b4024eba55b7e110378d2fce7275d697f34f17f Fix "Pointer to local array variable returned" diff -r 5b4024eba55b -r a0062a354a80 compat.c --- a/compat.c Mon Jan 04 21:18:17 2016 +0800 +++ b/compat.c Tue Jan 05 12:25:10 2016 +0800 @@ -235,7 +235,7 @@ static char **initshells() { /* don't touch this list. */ - const char *okshells[] = { "/bin/sh", "/bin/csh", NULL }; + static const char *okshells[] = { "/bin/sh", "/bin/csh", NULL }; register char **sp, *cp; register FILE *fp; struct stat statb;