aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/argparse.c')
-rw-r--r--src/argparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/argparse.c b/src/argparse.c
index b6abf86b..003334f9 100644
--- a/src/argparse.c
+++ b/src/argparse.c
@@ -895,6 +895,7 @@ arg_parse( ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts)
char **argv;
char *s, *s2;
int i;
+ char string_with_x[] = "x";
initialize( arg, NULL, NULL );
argc = *arg->argc;
@@ -1106,7 +1107,7 @@ arg_parse( ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts)
argc--; argv++; idx++; /* Skip one. */
}
}
- s = "x"; /* This is so that !s[1] yields false. */
+ s = string_with_x; /* This is so that !s[1] yields false. */
}
else
{