summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 89978898..10a628df 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1030,7 +1030,7 @@ post_fo(POST_ARGS)
hwarn_eq1(mdoc);
bwarn_ge1(mdoc);
- if (mdoc->last->type == MDOC_HEAD)
+ if (mdoc->last->type == MDOC_HEAD && mdoc->last->nchild)
post_fname(mdoc);
return(1);
}