diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-01 21:44:47 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-01 21:44:47 +0000 |
commit | 9c216164abd606b0097a7d91e8e0026c721fa54d (patch) | |
tree | 422f428aa27bcc621e3bfbdab1ad7b5cbb6af3dc /mdoc_validate.c | |
parent | cfde1d86dc777ba6f45042599f2519baafb74cac (diff) | |
download | mandoc-9c216164abd606b0097a7d91e8e0026c721fa54d.tar.gz mandoc-9c216164abd606b0097a7d91e8e0026c721fa54d.tar.zst mandoc-9c216164abd606b0097a7d91e8e0026c721fa54d.zip |
Prevent validator from puking on ENDBODY `Bl' nodes.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 48b0c40c..f9d5b2a0 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.102 2010/06/28 14:39:17 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.103 2010/07/01 21:44:47 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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); |