summaryrefslogtreecommitdiff
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
commit1c0876c0b3c3f7369dc069fb1655dfed8fbadaff (patch)
treeccf597a1e774ea4315be2cd2f175636e47050caa /src/internal/argv
parentc63b6d1fd73e61e48018487420f75ee218c41586 (diff)
downloadperk-1c0876c0b3c3f7369dc069fb1655dfed8fbadaff.tar.bz2
perk-1c0876c0b3c3f7369dc069fb1655dfed8fbadaff.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 43bbf73..89c277f 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;
}