diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-18 23:07:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-18 23:07:23 +0000 |
commit | d24d0a2d3305a6ad6d97b50204e008b2d2a2fea7 (patch) | |
tree | 6a7e57f66b10bb2cffd22b8168658062bd5a2441 /mandocdb.c | |
parent | 9f8b78f8343545a5a6de607a1d55ec6397ce8c6c (diff) | |
download | mandoc-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.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |