From: Adam Dickmeiss Date: Tue, 13 Jan 2009 14:53:51 +0000 (+0100) Subject: Allow combined single char options (again) X-Git-Tag: v3.0.42~17 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=0edd22d3d3fb9bafa8795815517e9ad51d51641f;p=yaz-moved-to-github.git Allow combined single char options (again) --- diff --git a/src/options.c b/src/options.c index e9e2f68..88c1c92 100644 --- a/src/options.c +++ b/src/options.c @@ -90,9 +90,7 @@ int options (const char *desc, char **argv, int argc, char **arg) } else /* option with no argument */ { - if (argv[arg_no][arg_off]) - arg_off++; - else + if (!argv[arg_no][arg_off]) { arg_off = 0; arg_no++;