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:12 -0400
commit2ff4441c16fecbbcbd9d0fa46997abbc6c03277f (patch)
tree4350f5273ebf13b67815a13cfec288c3873b1d91 /src/internal/argv
parent8b17a68b0d72dcb49a639b113c3d9ffdb5fcf5ea (diff)
downloadsofort-2ff4441c16fecbbcbd9d0fa46997abbc6c03277f.tar.bz2
sofort-2ff4441c16fecbbcbd9d0fa46997abbc6c03277f.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 3989e09..6c68c36 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;
}