summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-01 21:44:47 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-01 21:44:47 +0000
commit9aa51d8254f41d6b1f1ef2382a74288fb913f815 (patch)
treebc6da6e6fb6e8ad833a0c2a7376458e40385af78 /mdoc_validate.c
parent78cd93e807f59c2887a762ae28988154d0c7f7d8 (diff)
downloadmandoc-9aa51d8254f41d6b1f1ef2382a74288fb913f815.tar.gz
Prevent validator from puking on ENDBODY `Bl' nodes.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 32dd2339..3e960331 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -543,6 +543,8 @@ pre_bl(PRE_ARGS)
if (MDOC_BLOCK != n->type) {
assert(n->parent);
+ if (ENDBODY_NOT != n->end)
+ return(1);
assert(MDOC_BLOCK == n->parent->type);
assert(MDOC_Bl == n->parent->tok);
assert(LIST__NONE != n->parent->data.Bl.type);