Allow combined single char options (again)
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 13 Jan 2009 14:53:51 +0000 (15:53 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 13 Jan 2009 14:53:51 +0000 (15:53 +0100)
src/options.c

index e9e2f68..88c1c92 100644 (file)
@@ -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++;