From 6fa9a1baff943f4d115847a9362593ac8855b30f 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dba.c') 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 * @@ -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 v1.2.3