commit | 533aebe33656f0ade5f9071ae7880b54a097752b | [log] [tgz] |
---|---|---|
author | Chocobo1 <Chocobo1@users.noreply.github.com> | Tue Jan 05 12:25:10 2016 +0800 |
committer | Chocobo1 <Chocobo1@users.noreply.github.com> | Tue Jan 05 12:25:10 2016 +0800 |
tree | 5d17580e2d5659fdb1a284eaccce4cdaf571b7a0 | |
parent | 5f8fcef688a6719ae54bda58d83b68e481edbf5e [diff] |
Fix "Pointer to local array variable returned"
diff --git a/compat.c b/compat.c index a689a14..71558a5 100644 --- a/compat.c +++ b/compat.c
@@ -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;