diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-04-04 17:36:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-04-04 17:36:58 +0000 |
commit | df270920ef1fb43dcb57a022e498a7f772a3a0e4 (patch) | |
tree | 85642fe60bc8f5f17d084700727e99aa5a28a904 /usr.bin | |
parent | 846bea7eb3990ed31b9e548e7bfb36373aec3951 (diff) |
Make sure we never stay in SEC_NONE when passing by .Sh.
Fixing the x11/scrotwm build.
Problem reported by naddy@, thanks.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/mdoc_action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_action.c b/usr.bin/mandoc/mdoc_action.c index ed59bc89881..cff9330ed98 100644 --- a/usr.bin/mandoc/mdoc_action.c +++ b/usr.bin/mandoc/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.28 2010/04/02 12:39:47 schwarze Exp $ */ +/* $Id: mdoc_action.c,v 1.29 2010/04/04 17:36:57 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -417,7 +417,7 @@ post_sh(POST_ARGS) if ( ! concat(m, buf, n->child, BUFSIZ)) return(0); sec = mdoc_atosec(buf); - if (SEC_CUSTOM != sec) + if (SEC_NONE == m->lastnamed || SEC_CUSTOM != sec) m->lastnamed = sec; /* Some sections only live in certain manual sections. */ |