summaryrefslogtreecommitdiffstats
path: root/validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/validate.c b/validate.c
index 595b1edd..7da4a197 100644
--- a/validate.c
+++ b/validate.c
@@ -1187,8 +1187,8 @@ post_it(POST_ARGS)
if (mdoc->last->body->child)
if ( ! mwarn(mdoc, WNOMULTILINE))
return(0);
- c = mdoc->last->head->child;
- for (i = 0; c; c = c->next)
+ c = mdoc->last->head;
+ for (i = 0; c && MDOC_HEAD == c->type; c = c->next)
i++;
if (i == cols)
break;