diff 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
line wrap: on
line diff
--- a/compat.c	Tue Dec 15 22:24:34 2015 +0800
+++ b/compat.c	Tue Mar 15 22:45:43 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;