diff options
author | midipix <writeonce@midipix.org> | 2018-05-23 00:33:26 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-05-23 00:03:11 -0400 |
commit | ec0036a614d4bedafab6ff366525e32d23417507 (patch) | |
tree | a9c8e014e9ea0eada39af0565574cd64ea7e4f0e | |
parent | 98092929fca2033abb7e47a301cb4e8e0d439194 (diff) | |
download | ptycon-ec0036a614d4bedafab6ff366525e32d23417507.tar.bz2 ptycon-ec0036a614d4bedafab6ff366525e32d23417507.tar.xz |
argv: argv_scan(): properly handle optional argument values of short options.
-rw-r--r-- | src/internal/argv/argv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index 03d5b4e..b29ba5c 100644 --- a/src/internal/argv/argv.h +++ b/src/internal/argv/argv.h @@ -380,6 +380,8 @@ static void argv_scan( fval = false; else if (ch && is_last_option(ch)) fval = false; + else if (fnext) + fval = false; else fval = ch; } |