summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-07 03:08:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-07 03:08:47 +0000
commit6a8ae4913857a065ca7564e19473146c144d3c29 (patch)
treed719cbbbb0cc1a10dad906efc3794c695d1291a2
parentf07f0eef8bffd39db8a65e8c09b3fb1f10d3450d (diff)
downloadmandoc-6a8ae4913857a065ca7564e19473146c144d3c29.tar.gz
Do not report a page as arch=any merely because .Dt lacks the third argument.
Pages found outside arch-specific dirs still get arch=any, of course. Issue reported by justinhenryhaynes at gmail dot com on misc@, thanks!
-rw-r--r--mandocdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 6a84981f..2f513984 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1196,8 +1196,8 @@ mpages_merge(struct mchars *mc, struct mparse *mp)
if (mpage->mlinks->gzip)
mpage->form |= FORM_GZ;
putkey(mpage, mpage->sec, TYPE_sec);
- putkey(mpage, '\0' == *mpage->arch ?
- any : mpage->arch, TYPE_arch);
+ if (*mpage->arch != '\0')
+ putkey(mpage, mpage->arch, TYPE_arch);
for (mlink = mpage->mlinks; mlink; mlink = mlink->next) {
if ('\0' != *mlink->dsec)