diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-07 03:08:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-07 03:08:47 +0000 |
commit | 6a8ae4913857a065ca7564e19473146c144d3c29 (patch) | |
tree | d719cbbbb0cc1a10dad906efc3794c695d1291a2 | |
parent | f07f0eef8bffd39db8a65e8c09b3fb1f10d3450d (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |