summaryrefslogtreecommitdiffhomepage
path: root/compat.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2016-03-10 21:37:35 +0800
committerMatt Johnston <matt@ucc.asn.au>2016-03-10 21:37:35 +0800
commita991d3b56bdd2750c772cb48bc1b932ed1714ad3 (patch)
treed595af33e4b675dd7b229ed0922ac355413b38b4 /compat.c
parent26a1a0a3bc4420e57334d3ecc827f14ffcb9f24a (diff)
parenta84ce21aece29167f3312c127912404f6e486146 (diff)
merge github master
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat.c b/compat.c
index a689a14..71558a5 100644
--- a/compat.c
+++ b/compat.c
@@ -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;