diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-03 13:41:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-03 13:41:42 +0000 |
commit | 1ad6f6e0ee89c526a785591e3e32ee04aed82f7b (patch) | |
tree | 8d6af3e5f5340315d4adc48fb817d52647399d1d /mandocdb.c | |
parent | 6c693ba24fb97a348d31fd701b83ea5125baf39f (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |