From 77472d81dfad0b0e6e871a1beaf35cfcfd6a9067 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 17 Aug 2016 18:10:39 +0000 Subject: 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@. --- dba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dba.c') 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; -- cgit