summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--login-utils/chsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/chsh.c b/login-utils/chsh.c
index fd2893e95..51f575d65 100644
--- a/login-utils/chsh.c
+++ b/login-utils/chsh.c
@@ -125,7 +125,7 @@ static int get_shell_list(const char *shell_name)
*/
static void parse_argv(int argc, char **argv, struct sinfo *pinfo)
{
- const struct option long_options[] = {
+ static const struct option long_options[] = {
{"shell", required_argument, 0, 's'},
{"list-shells", no_argument, 0, 'l'},
{"help", no_argument, 0, 'u'},