projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a54a02
)
Allow combined single char options (again)
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 13 Jan 2009 14:53:51 +0000
(15:53 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 13 Jan 2009 14:53:51 +0000
(15:53 +0100)
src/options.c
patch
|
blob
|
history
diff --git
a/src/options.c
b/src/options.c
index
e9e2f68
..
88c1c92
100644
(file)
--- 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++;