Fix "Pointer to local array variable returned"

This commit is contained in:
Chocobo1 2016-01-05 12:25:10 +08:00
parent 5f8fcef688
commit 533aebe336

View File

@ -235,7 +235,7 @@ void setusershell() {
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;