comparison compat.c @ 1236:a0062a354a80

Fix "Pointer to local array variable returned"
author Chocobo1 <Chocobo1@users.noreply.github.com>
date Tue, 05 Jan 2016 12:25:10 +0800
parents caa09587c3fb
children 826a3293fe5a e7f11ed5fe28
comparison
equal deleted inserted replaced
1223:5b4024eba55b 1236:a0062a354a80
233 curshell = initshells(); 233 curshell = initshells();
234 } 234 }
235 235
236 static char **initshells() { 236 static char **initshells() {
237 /* don't touch this list. */ 237 /* don't touch this list. */
238 const char *okshells[] = { "/bin/sh", "/bin/csh", NULL }; 238 static const char *okshells[] = { "/bin/sh", "/bin/csh", NULL };
239 register char **sp, *cp; 239 register char **sp, *cp;
240 register FILE *fp; 240 register FILE *fp;
241 struct stat statb; 241 struct stat statb;
242 int flen; 242 int flen;
243 243