summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc_action.c1
-rw-r--r--mdoc_macro.c9
-rw-r--r--mdoc_term.c1
-rw-r--r--mdoc_validate.c1
4 files changed, 6 insertions, 6 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index a54b21c3..2a284546 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -487,7 +487,6 @@ post_dt(POST_ARGS)
free(m->meta.vol);
if (NULL == (m->meta.vol = strdup(cp)))
return(mdoc_nerr(m, m->last, EMALLOC));
- n = n->next;
} else {
cp = mdoc_a2arch(n->string);
if (NULL == cp) {
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);
diff --git a/mdoc_term.c b/mdoc_term.c
index 6cba2d38..63a7ba9e 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -674,6 +674,7 @@ fmt_block_vspace(struct termp *p,
if (MDOC_Bl == bl->tok && arg_hasattr(MDOC_Compact, bl))
return;
+ assert(node);
/*
* Search through our prior nodes. If we follow a `Ss' or `Sh',
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 384fe669..7e6dddf1 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1219,6 +1219,7 @@ post_sh_body(POST_ARGS)
return(0);
}
+ assert(n);
if (MDOC_BLOCK == n->type && MDOC_Nd == n->tok)
return(1);
return(mdoc_nwarn(mdoc, mdoc->last, ENAMESECINC));