summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-03 13:41:42 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-03 13:41:42 +0000
commit1ad6f6e0ee89c526a785591e3e32ee04aed82f7b (patch)
tree8d6af3e5f5340315d4adc48fb817d52647399d1d /mandocdb.c
parent6c693ba24fb97a348d31fd701b83ea5125baf39f (diff)
downloadmandoc-1ad6f6e0ee89c526a785591e3e32ee04aed82f7b.tar.gz
Fix a copy-and-paste error that caused man(7) manuals without
a section number in .TH to be misinterpreted as preformatted. Found by jsg@ with cppcheck.
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 d730d177..f4b8345c 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1211,7 +1211,7 @@ mpages_merge(struct dba *dba, struct mparse *mp)
} else if (man != NULL && man->macroset == MACROSET_MAN) {
man_validate(man);
if (*man->meta.msec != '\0' ||
- *man->meta.msec != '\0') {
+ *man->meta.title != '\0') {
mpage->form = FORM_SRC;
mpage->sec = mandoc_strdup(man->meta.msec);
mpage->arch = mandoc_strdup(mlink->arch);