diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-25 16:03:03 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-25 16:03:03 +0000 |
commit | e820a984784a040afe30fb4601e418695d647928 (patch) | |
tree | ae8e8d89674be7f79466879e97a66cba021ca5aa /mdoc_macro.c | |
parent | 0d8aacabe1e3f7fd5a9be49188ca96e229c4fb6a (diff) | |
download | mandoc-e820a984784a040afe30fb4601e418695d647928.tar.gz |
Patches and results of LLVM static analysis (thanks uqs@sporlein.net).
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index bbc89148..e1b8d47b 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -681,7 +681,7 @@ blk_exp_close(MACRO_PROT_ARGS) mdoc->next = MDOC_NEXT_CHILD; } - for (lastarg = ppos, flushed = j = 0; ; j++) { + for (flushed = j = 0; ; j++) { lastarg = *pos; if (j == maxargs && ! flushed) { @@ -760,7 +760,7 @@ in_line(MACRO_PROT_ARGS) break; } - for (la = ppos, arg = NULL;; ) { + for (arg = NULL;; ) { la = *pos; c = mdoc_argv(mdoc, line, tok, &arg, pos, buf); @@ -1046,7 +1046,7 @@ blk_part_imp(MACRO_PROT_ARGS) /* XXX - no known argument macros. */ - for (lastarg = ppos;; ) { + for (;;) { lastarg = *pos; c = mdoc_args(mdoc, line, pos, buf, tok, &p); assert(ARGS_PHRASE != c); @@ -1107,7 +1107,6 @@ blk_part_exp(MACRO_PROT_ARGS) int lastarg, flushed, j, c, maxargs; char *p; - lastarg = ppos; flushed = 0; /* @@ -1243,7 +1242,7 @@ in_line_argn(MACRO_PROT_ARGS) break; } - for (lastarg = ppos, arg = NULL;; ) { + for (arg = NULL;; ) { lastarg = *pos; c = mdoc_argv(mdoc, line, tok, &arg, pos, buf); |