summaryrefslogtreecommitdiffhomepage
path: root/compat.c
diff options
context:
space:
mode:
authorChocobo1 <Chocobo1@users.noreply.github.com>2016-01-05 12:25:10 +0800
committerChocobo1 <Chocobo1@users.noreply.github.com>2016-01-05 12:25:10 +0800
commit533aebe33656f0ade5f9071ae7880b54a097752b (patch)
tree5d17580e2d5659fdb1a284eaccce4cdaf571b7a0 /compat.c
parent5f8fcef688a6719ae54bda58d83b68e481edbf5e (diff)
Fix "Pointer to local array variable returned"
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;