summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-18 23:07:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-18 23:07:23 +0000
commitd24d0a2d3305a6ad6d97b50204e008b2d2a2fea7 (patch)
tree6a7e57f66b10bb2cffd22b8168658062bd5a2441
parent9f8b78f8343545a5a6de607a1d55ec6397ce8c6c (diff)
downloadmandoc-d24d0a2d3305a6ad6d97b50204e008b2d2a2fea7.tar.gz
Fix an assertion in dbindex(): Null strings are never entered into the
string table. Fortunately, they never need UTF-8 translation either.
-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);