diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-02-17 21:41:59 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-02-17 21:41:59 +0000 |
| commit | 4f18168755c70b65b071d2888c1e7f7fe4c5fd6c (patch) | |
| tree | dc398e68400896420195c11fe15bf44c68030905 /bk_html.c | |
| parent | 13dfe2eef34cc4460216f4ee87fc060978a6ce5b (diff) | |
| download | halibut-4f18168755c70b65b071d2888c1e7f7fe4c5fd6c.zip halibut-4f18168755c70b65b071d2888c1e7f7fe4c5fd6c.tar.gz halibut-4f18168755c70b65b071d2888c1e7f7fe4c5fd6c.tar.bz2 halibut-4f18168755c70b65b071d2888c1e7f7fe4c5fd6c.tar.xz | |
Replace crash with assertion failure if we attempt to xref a non-existent
name.
[originally from svn r5336]
Diffstat (limited to 'bk_html.c')
| -rw-r--r-- | bk_html.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |