From 536c1b8c974d15cf5eaf859a465cd8041b3cb4c0 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 30 Dec 2015 08:10:42 -0500 Subject: argv.h: fix out-of-place initialization of mparalen (and related vars). --- src/internal/argv/argv.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/internal/argv') diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index 843a0ff..97a312e 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) -- cgit v1.2.3