summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-09-05 11:53:19 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-09-05 11:53:19 +0100
commit84b90853b50f02a4b182bd49c4a6a5a360fb7b10 (patch)
treeaa3a1a8ced9ec4ae8e85ec64c92521e367fcb4ff /desktop
parent33c383357d2b2b29eb1837c22ea718c7c7295fb6 (diff)
downloadnetsurf-84b90853b50f02a4b182bd49c4a6a5a360fb7b10.tar.gz
netsurf-84b90853b50f02a4b182bd49c4a6a5a360fb7b10.tar.bz2
Fix dead assignement.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/hotlist.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index a25d3f014..424de9383 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -1095,11 +1095,8 @@ static nserror hotlist_populate(const char *path)
/* Load hotlist file */
err = hotlist_load(path, &loaded);
- /* Ignoring errors, since if there was an error, we want to generate
- * the default hotlist anyway. */
-
- if (loaded)
- return NSERROR_OK;
+ if (loaded && err == NSERROR_OK)
+ return err;
/* Couldn't load hotlist, generate a default one */
err = hotlist_generate();