diff options
author | midipix <writeonce@midipix.org> | 2015-12-30 08:11:08 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-12-30 08:11:08 -0500 |
commit | 5c5a0d57af3c0aa85a0dafbec14f519b1cdbd5a2 (patch) | |
tree | f49603a1a243120547d289fadc14c7dd1c98c9fb /src | |
parent | 21f1d137da4c543d19723bf4877007c3e9aca59e (diff) | |
download | sofort-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.h | 10 |
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) |