diff options
Diffstat (limited to 'usr.bin/mandoc/mandocdb.c')
-rw-r--r-- | usr.bin/mandoc/mandocdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c index 7770550d1aa..84de236abf2 100644 --- a/usr.bin/mandoc/mandocdb.c +++ b/usr.bin/mandoc/mandocdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mandocdb.c,v 1.131 2014/12/05 14:26:23 schwarze Exp $ */ +/* $OpenBSD: mandocdb.c,v 1.132 2014/12/05 15:16:25 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1671,6 +1671,9 @@ parse_mdoc_Fo(struct mpage *mpage, const struct mdoc_meta *meta, const struct mdoc_node *n) { + if (n->type != MDOC_HEAD) + return(1); + putmdockey(mpage, n->child, TYPE_Fn); if (n->sec == SEC_SYNOPSIS) putmdockey(mpage, n->child, NAME_SYN); |