From 533aebe33656f0ade5f9071ae7880b54a097752b Mon Sep 17 00:00:00 2001 From: Chocobo1 <Chocobo1@users.noreply.github.com> Date: Tue, 5 Jan 2016 12:25:10 +0800 Subject: [PATCH] Fix "Pointer to local array variable returned" --- compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat.c b/compat.c index a689a146..71558a58 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; -- GitLab