From 84b90853b50f02a4b182bd49c4a6a5a360fb7b10 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 5 Sep 2013 11:53:19 +0100 Subject: Fix dead assignement. --- desktop/hotlist.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'desktop') 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(); -- cgit v1.2.3