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;