]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chsh: keep struct options in .rodata
authorKarel Zak <kzak@redhat.com>
Tue, 6 Jan 2015 10:00:51 +0000 (11:00 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Jan 2015 10:00:51 +0000 (11:00 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chsh.c

index fd2893e9554144583f5070c1832c22ac71f54f78..51f575d655687eac9f6ea125fa1ed37a5cd27407 100644 (file)
@@ -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'},