From 417a0e59bd9415e6984456b600930ec877216c53 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 18 Oct 2013 23:07:23 +0000 Subject: Fix an assertion in dbindex(): Null strings are never entered into the string table. Fortunately, they never need UTF-8 translation either. --- mandocdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mandocdb.c') diff --git a/mandocdb.c b/mandocdb.c index b68131f9..95d511f7 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.72 2013/10/18 21:10:07 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.73 2013/10/18 23:07:23 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013 Ingo Schwarze @@ -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); -- cgit v1.2.3-56-ge451