comparison compat.c @ 1256:506f7681d0f8 coverity

merge up to date
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Mar 2016 22:45:43 +0800
parents a0062a354a80
children 826a3293fe5a e7f11ed5fe28
comparison
equal deleted inserted replaced
1219:84cf9062718d 1256:506f7681d0f8
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