[project @ 2004-07-30 18:35:31 by bursa]

Fix hotlist loading crash.

svn path=/import/netsurf/; revision=1166
This commit is contained in:
James Bursa 2004-07-30 18:35:31 +00:00
parent 52f4882ee2
commit 999ded28b8

View File

@ -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 "