diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/argcontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/argcontext.c b/examples/argcontext.c index 7160266c..a68650bc 100644 --- a/examples/argcontext.c +++ b/examples/argcontext.c @@ -147,7 +147,7 @@ arg_context_parse (ArgContext *context, arg = (*argv)[i] + 2; /* '--' terminates list of arguments */ - if (arg == 0) + if (*arg == '\0') { (*argv)[i] = NULL; break; |