summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-30 08:10:42 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:34 -0500
commit536c1b8c974d15cf5eaf859a465cd8041b3cb4c0 (patch)
tree3382c772985ca3fa74e5dd02dc6adfc7bdb09b2a /src/internal
parentf9baff91bf68bf5a97fc6451c7caa4c791e8b93a (diff)
downloadperk-536c1b8c974d15cf5eaf859a465cd8041b3cb4c0.tar.bz2
perk-536c1b8c974d15cf5eaf859a465cd8041b3cb4c0.tar.xz
argv.h: fix out-of-place initialization of mparalen (and related vars).
Diffstat (limited to 'src/internal')
-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 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)