From 4f18168755c70b65b071d2888c1e7f7fe4c5fd6c Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Thu, 17 Feb 2005 21:41:59 +0000 Subject: Replace crash with assertion failure if we attempt to xref a non-existent name. [originally from svn r5336] --- bk_html.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bk_html.c b/bk_html.c index 5babfda..ce1dc4a 100644 --- a/bk_html.c +++ b/bk_html.c @@ -1625,8 +1625,12 @@ static void html_words(htmloutput *ho, word *words, int flags, case word_LowerXref: if (flags & LINKS) { keyword *kwl = kw_lookup(keywords, w->text); - paragraph *p = kwl->para; - htmlsect *s = (htmlsect *)p->private_data; + paragraph *p; + htmlsect *s; + + assert(kwl); + p = kwl->para; + s = (htmlsect *)p->private_data; assert(s); -- cgit v1.1