mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
[project @ 2004-07-30 18:35:31 by bursa]
Fix hotlist loading crash. svn path=/import/netsurf/; revision=1166
This commit is contained in:
parent
52f4882ee2
commit
999ded28b8
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user