summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-21 11:35:26 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-21 11:35:26 +0000
commit750900b44b04f0713e1d2456b42c728b564c9c39 (patch)
tree25cdf9e2ab1b4cfcb3b0536bac7c982488c9eab2 /action.c
parente2762e29b6445ab6177b83521a279938a317605f (diff)
downloadmandoc-750900b44b04f0713e1d2456b42c728b564c9c39.tar.gz
More validation on prologue/first NAME section.
Diffstat (limited to 'action.c')
-rw-r--r--action.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/action.c b/action.c
index d78803ea..e7ece6cd 100644
--- a/action.c
+++ b/action.c
@@ -193,8 +193,7 @@ post_sh(struct mdoc *mdoc)
return(1);
if (xstrlcats(buf, mdoc->last->child, 64)) {
if (SEC_CUSTOM != (sec = mdoc_atosec(buf)))
- mdoc->sec_lastn = sec;
- mdoc->sec_last = sec;
+ mdoc->lastnamed = sec;
return(1);
}
@@ -268,8 +267,7 @@ post_os(struct mdoc *mdoc)
return(mdoc_err(mdoc, "macro parameters too long"));
mdoc->meta.os = xstrdup(buf[0] ? buf : "local");
- mdoc->sec_lastn = mdoc->sec_last = SEC_BODY;
- mdoc->flags |= MDOC_BODYPARSE;
+ mdoc->lastnamed = SEC_BODY;
return(post_prologue(mdoc));
}