summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-05 17:22:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-05 17:22:45 +0000
commit825a1ba18e52fa3b4350b266df9165a804b68573 (patch)
tree0756ff69eeb3ae57e213eb8c761cc48b366cd709 /mandocdb.c
parentf0bdbf04c573205ec54e999b359710b52c412009 (diff)
downloadmandoc-825a1ba18e52fa3b4350b266df9165a804b68573.tar.gz
fix a typo that prevented names from .Dt from getting priority
over names from .Sh NAME
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index a39690e9..55d3a01c 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1693,7 +1693,7 @@ parse_mdoc_Nm(struct mpage *mpage, const struct roff_meta *meta,
if ( ! (mpage->name_head_done ||
n->child == NULL || n->child->string == NULL ||
strcasecmp(n->child->string, meta->title))) {
- putkey(mpage, n->child->string, ROFFT_HEAD);
+ putkey(mpage, n->child->string, NAME_HEAD);
mpage->name_head_done = 1;
}
return 0;