summaryrefslogtreecommitdiffstats
path: root/dba.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-17 18:10:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-17 18:10:39 +0000
commit77472d81dfad0b0e6e871a1beaf35cfcfd6a9067 (patch)
tree5c36d5561441e61d83c60bccd12a66a22c6fa7e9 /dba.c
parenta6e2b9125ac019234a478e300d9a516867a7bf26 (diff)
downloadmandoc-77472d81dfad0b0e6e871a1beaf35cfcfd6a9067.tar.gz
Make sure manuals in architecture-independent directories are treated
as architecture-independent even if they abuse the third (architecture) argument of the .Dt macro for random stuff like "freetds reference manual". While the .Dt syntax is not the same as the .TH syntax in man(7), punishing offenders by treating them as architecture-dependent and hence completely excluding them from searches is too severe. Problem reported by sthen@.
Diffstat (limited to 'dba.c')
-rw-r--r--dba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dba.c b/dba.c
index d5fd5b85..b2737922 100644
--- a/dba.c
+++ b/dba.c
@@ -177,7 +177,7 @@ dba_page_add(struct dba_array *page, int32_t ie, const char *str)
if (ie == DBP_ARCH) {
if (entries == NULL)
return;
- if (str == NULL) {
+ if (str == NULL || *str == '\0') {
dba_array_free(entries);
dba_array_set(page, DBP_ARCH, NULL);
return;