aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit6fa9a1baff943f4d115847a9362593ac8855b30f (patch)
treea2d08c4fa3f20eb3aea328f4ed734d514b4d3f07 /dba.c
parent93ce0a9c79d688def63eaf7f78a889df8e518314 (diff)
downloadmandoc-6fa9a1baff943f4d115847a9362593ac8855b30f.tar.gz
mandoc-6fa9a1baff943f4d115847a9362593ac8855b30f.tar.zst
mandoc-6fa9a1baff943f4d115847a9362593ac8855b30f.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dba.c b/dba.c
index 0a1b656d..5d190bca 100644
--- a/dba.c
+++ b/dba.c
@@ -1,4 +1,4 @@
-/* $Id: dba.c,v 1.5 2016/08/05 23:15:08 schwarze Exp $ */
+/* $Id: dba.c,v 1.6 2016/08/17 18:10:39 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -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;