diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-15 19:51:42 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-16 08:25:25 +0100 |
commit | da557af9670528200c229cb93a4466ff79374839 (patch) | |
tree | 1316255bb3c14a2eafa8c63b4318d3f5bd96e5c8 /desktop | |
parent | 58315b967317dffab66c696a7cef0686498a7650 (diff) | |
download | netsurf-da557af9670528200c229cb93a4466ff79374839.tar.gz netsurf-da557af9670528200c229cb93a4466ff79374839.tar.bz2 |
Slight simplification.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/hotlist.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c index e73dad450..6ec1c6793 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -604,15 +604,6 @@ static nserror hotlist_load(const char *path, bool *loaded) ctx.title = NULL; err = hotlist_load_directory(ul, &ctx); - if (err != NSERROR_OK) { - dom_node_unref(ul); - dom_node_unref(body); - dom_node_unref(html); - dom_node_unref(document); - warn_user("TreeLoadError", - "(<html>...<body>...<ul> not found.)"); - return NSERROR_OK; - } if (ctx.title != NULL) { dom_string_unref(ctx.title); @@ -624,6 +615,11 @@ static nserror hotlist_load(const char *path, bool *loaded) dom_node_unref(html); dom_node_unref(document); + if (err != NSERROR_OK) { + warn_user("TreeLoadError", "(Failed building tree.)"); + return NSERROR_OK; + } + return NSERROR_OK; } |