summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:18:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:18:15 +0000
commit75f227792a0d34031aeeaec473483f07aa7c793c (patch)
tree4e0793668e9010ae4476bc9d1838485b6350b00b /mdoc_validate.c
parent31585348ea96dc3d531dd9a8fdbea4ad5ce4b927 (diff)
downloadmandoc-75f227792a0d34031aeeaec473483f07aa7c793c.tar.gz
Allow -man to process EQN as well. Also fix a segfault in missing case
statements in the post-handler for EQN in -mdoc and -man.
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 852262e8..5316e5e4 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -369,6 +369,8 @@ mdoc_valid_post(struct mdoc *mdoc)
switch (mdoc->last->type) {
case (MDOC_TEXT):
/* FALLTHROUGH */
+ case (MDOC_EQN):
+ /* FALLTHROUGH */
case (MDOC_TBL):
return(1);
case (MDOC_ROOT):