summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 7b48b228..12b7b4d3 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1792,7 +1792,7 @@ dbindex(struct mchars *mc, int form, const struct of *of)
return;
desc = "";
- if (NULL != of->desc) {
+ if (NULL != of->desc && '\0' != *of->desc) {
key = ohash_find(&strings,
ohash_qlookup(&strings, of->desc));
assert(NULL != key);