diff options
-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 " |