summaryrefslogtreecommitdiff
path: root/src/internal
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:11 -0400
commit44416d2a018f68e001c59e41ff9d461e300913e8 (patch)
treef713ef50368ff28f1aaeab442bfc60cab5a184f9 /src/internal
parent59c14f10644062a1f7ff5980d7174ad5bd726841 (diff)
downloadslibtool-44416d2a018f68e001c59e41ff9d461e300913e8.tar.bz2
slibtool-44416d2a018f68e001c59e41ff9d461e300913e8.tar.xz
argv: argv_scan(): properly handle optional argument values of short options.
Diffstat (limited to 'src/internal')
-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 1086a9f..5e355ce 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;
}