summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-03 11:38:14 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:35 -0500
commit43055f6d2c6d1d4243a66371b9bf7a0bf79ab0e0 (patch)
treedd2ef7ec395a9374f56b9bdfbdfb79a4b5b5ed82 /src/internal
parent17202ae539bb54ae5592652f15a4745afcfb90c2 (diff)
downloadperk-43055f6d2c6d1d4243a66371b9bf7a0bf79ab0e0.tar.bz2
perk-43055f6d2c6d1d4243a66371b9bf7a0bf79ab0e0.tar.xz
argv.h: add (harmlessly) missing 'else' in ARGV_OPTARG_OPTIONAL code path.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/argv/argv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index d76597a..5f8b4f1 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -393,7 +393,7 @@ static void argv_scan(
/* ARGV_OPTARG_OPTIONAL */
if (!val[0] && !*parg)
fval = false;
- if (*parg && is_short_option(*parg))
+ else if (*parg && is_short_option(*parg))
fval = false;
else if (*parg && is_long_option(*parg))
fval = false;