summaryrefslogtreecommitdiffhomepage
path: root/src/internal/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-05-23 00:33:26 +0000
committermidipix <writeonce@midipix.org>2018-05-23 00:03:10 -0400
commit1456bef093b9986bf3f53bd9acdc31a3a0f19af9 (patch)
treed6e662e58261774b19e7d5baa5055d27dff40fa3 /src/internal/argv
parentc64273bcc029161e1c34806fd3194975836d652b (diff)
downloadmdso-1456bef093b9986bf3f53bd9acdc31a3a0f19af9.tar.bz2
mdso-1456bef093b9986bf3f53bd9acdc31a3a0f19af9.tar.xz
argv: argv_scan(): properly handle optional argument values of short options.
Diffstat (limited to 'src/internal/argv')
-rw-r--r--src/internal/argv/argv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index 98e4a79..6907765 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;
}