diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-17 18:10:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-17 18:10:39 +0000 |
commit | 77472d81dfad0b0e6e871a1beaf35cfcfd6a9067 (patch) | |
tree | 5c36d5561441e61d83c60bccd12a66a22c6fa7e9 /dba.c | |
parent | a6e2b9125ac019234a478e300d9a516867a7bf26 (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |