summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-29 22:20:46 -0500
committermidipix <writeonce@midipix.org>2016-01-01 22:50:24 -0500
commit379519e6def59e4eea6d3a59fc539b34a1c76e60 (patch)
treef079f75a9e0a2889697d1f819678948309a505a2
parent43c8c9ee36f661fa9e4895350f80f43be3814b74 (diff)
downloadapimagic-379519e6def59e4eea6d3a59fc539b34a1c76e60.tar.bz2
apimagic-379519e6def59e4eea6d3a59fc539b34a1c76e60.tar.xz
argv.h: fix out-of-place initialization of mparalen (and related vars).
-rw-r--r--src/internal/argv/argv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index eecac1f..b0c5a47 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -672,6 +672,11 @@ static void argv_usage(
optlen += ARGV_TAB;
optlen &= (~(ARGV_TAB-1));
+ paradigm = next_para = buf = 0;
+ fnewline = false;
+ rparalen = 0;
+ mparalen = 0;
+
if (paralen) {
paralen += (ARGV_TAB);
paralen &= (~(ARGV_TAB-1));
@@ -689,11 +694,6 @@ static void argv_usage(
else
desclen = 32;
- paradigm = next_para = buf = 0;
- fnewline = false;
- rparalen = 0;
- mparalen = 0;
-
for (option=options,buflen=0,rdesclen=1; option->short_name || option->long_name; option++) {
if (option->paradigm) {
if (option->optarg == ARGV_OPTARG_OPTIONAL)