diff options
author | midipix <writeonce@midipix.org> | 2015-12-30 08:09:20 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:32 -0500 |
commit | c71aad39229fe643928813d15f710baeca8a760c (patch) | |
tree | 6432047f4a25c7a3e6ce30b9bc764e7fb09a8b92 | |
parent | b4e4ee2204498706a17a09c3b14c3cd5265f0aa4 (diff) | |
download | mdso-c71aad39229fe643928813d15f710baeca8a760c.tar.bz2 mdso-c71aad39229fe643928813d15f710baeca8a760c.tar.xz |
argv.h: fix out-of-place initialization of mparalen (and related vars).
-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 64ca718..1f4bcee 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) |