summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-30 08:11:08 -0500
committermidipix <writeonce@midipix.org>2015-12-30 08:11:08 -0500
commit5c5a0d57af3c0aa85a0dafbec14f519b1cdbd5a2 (patch)
treef49603a1a243120547d289fadc14c7dd1c98c9fb /src
parent21f1d137da4c543d19723bf4877007c3e9aca59e (diff)
downloadsofort-5c5a0d57af3c0aa85a0dafbec14f519b1cdbd5a2.tar.bz2
sofort-5c5a0d57af3c0aa85a0dafbec14f519b1cdbd5a2.tar.xz
argv.h: fix out-of-place initialization of mparalen (and related vars).
Diffstat (limited to 'src')
-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 1d5f687..b685130 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)