From 0edd22d3d3fb9bafa8795815517e9ad51d51641f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 13 Jan 2009 15:53:51 +0100 Subject: [PATCH] Allow combined single char options (again) --- src/options.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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++; -- 1.7.10.4