From 2ff4441c16fecbbcbd9d0fa46997abbc6c03277f Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Wed, 23 May 2018 00:33:26 +0000
Subject: argv: argv_scan(): properly handle optional argument values of short
 options.

---
 src/internal/argv/argv.h | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src')

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;
 				}
-- 
cgit v1.2.3