From 999ded28b8f0bdd35f99bedeb11ac74a4dca5279 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 30 Jul 2004 18:35:31 +0000 Subject: [project @ 2004-07-30 18:35:31 by bursa] Fix hotlist loading crash. svn path=/import/netsurf/; revision=1166 --- riscos/hotlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscos/hotlist.c b/riscos/hotlist.c index 36b34a774..6ed3249b0 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -525,7 +525,7 @@ void ro_gui_hotlist_load_directory(xmlNode *ul, n && n->type != XML_ELEMENT_NODE; n = n->next) ; - if (strcmp(n->name, "ul") != 0) { + if (!n || strcmp(n->name, "ul") != 0) { /* next element isn't expected ul */ free(title); warn_user("HotlistLoadError", "(Expected " -- cgit v1.2.3