summaryrefslogtreecommitdiff
path: root/bk_html.c
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2005-02-17 21:41:59 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2005-02-17 21:41:59 +0000
commit4f18168755c70b65b071d2888c1e7f7fe4c5fd6c (patch)
treedc398e68400896420195c11fe15bf44c68030905 /bk_html.c
parent13dfe2eef34cc4460216f4ee87fc060978a6ce5b (diff)
downloadhalibut-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.c8
1 files 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);