summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnome.org>2004-04-05 20:40:35 +0000
committerAnders Carlsson <andersca@src.gnome.org>2004-04-05 20:40:35 +0000
commit6b64bd1ac69d27c439da2ecef943ae61e4208c89 (patch)
tree1a76aeb0fdfb1dbce1ba886943156f514a5441ae /examples
parentfbe8f2b2ee92ba90fef7a3e8db34fd3f567938e4 (diff)
downloadpango-6b64bd1ac69d27c439da2ecef943ae61e4208c89.tar.gz
Handle '--' correctly.
2004-04-05 Anders Carlsson <andersca@gnome.org> * examples/argcontext.c (arg_context_parse): Handle '--' correctly.
Diffstat (limited to 'examples')
-rw-r--r--examples/argcontext.c2
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;