* mdocml: Fix an assertion in dbindex(): Null strings are never entered
@ 2013-10-18 23:07 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-10-18 23:07 UTC (permalink / raw)
To: source
Log Message:
-----------
Fix an assertion in dbindex(): Null strings are never entered into the
string table. Fortunately, they never need UTF-8 translation either.
Modified Files:
--------------
mdocml:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.72 -r1.73
--- mandocdb.c
+++ mandocdb.c
@@ -1792,7 +1792,7 @@ dbindex(struct mchars *mc, int form, con
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);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-18 23:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 23:07 mdocml: Fix an assertion in dbindex(): Null strings are never entered schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).