summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-03 11:34:47 -0500
committermidipix <writeonce@midipix.org>2016-01-03 11:34:47 -0500
commit81c190921065d94a4218a4ffde9457612acb504f (patch)
treeacc541db95b3bd2fc0ece7299fd10f6e32eb4c49 /src
parent654e6495f3839b772aa0ac83a5072df4092ff522 (diff)
downloadapimagic-81c190921065d94a4218a4ffde9457612acb504f.tar.bz2
apimagic-81c190921065d94a4218a4ffde9457612acb504f.tar.xz
argv.h: add (harmlessly) missing 'else' in ARGV_OPTARG_OPTIONAL code path.
Diffstat (limited to 'src')
-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 45ea8b5..c15cc98 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;