From: jacob Date: Thu, 17 Feb 2005 21:41:59 +0000 (+0000) Subject: Replace crash with assertion failure if we attempt to xref a non-existent X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/2b0986a33ba8db8bc4abbc96982dcbecbc1281f7 Replace crash with assertion failure if we attempt to xref a non-existent name. git-svn-id: svn://svn.tartarus.org/sgt/halibut@5336 cda61777-01e9-0310-a592-d414129be87e --- 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);