diff options
author | James Bursa <james@netsurf-browser.org> | 2004-07-30 18:35:31 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-07-30 18:35:31 +0000 |
commit | 999ded28b8f0bdd35f99bedeb11ac74a4dca5279 (patch) | |
tree | 052acaec28f63d36ece83e3ea088065f026b6c28 /riscos/hotlist.c | |
parent | 52f4882ee248abdcc72dc875775ba4019c46e9de (diff) | |
download | netsurf-999ded28b8f0bdd35f99bedeb11ac74a4dca5279.tar.gz netsurf-999ded28b8f0bdd35f99bedeb11ac74a4dca5279.tar.bz2 |
[project @ 2004-07-30 18:35:31 by bursa]
Fix hotlist loading crash.
svn path=/import/netsurf/; revision=1166
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r-- | riscos/hotlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 " |