summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-04-07 01:02:07 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-04-07 01:02:07 +0200
commit6f4faecf91e08d7684030b3b28cef706e5296b21 (patch)
tree839a4c621b08724376f66026ce303348d0b74f15
parenta26bcb4fc45b4055136216e2425cd39f8fb38f3f (diff)
Fix a bug that resets the lists on reload.
-rw-r--r--src/lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lists.c b/src/lists.c
index 8eb0d5e..0a308c0 100644
--- a/src/lists.c
+++ b/src/lists.c
@@ -149,7 +149,7 @@ int lists_reload(const char *file)
pthread_mutex_lock(&entry_list_mutex);
lists_destroy();
ret = lists_load(file, 0);
- if (!ret)
+ if (ret)
lists_destroy();
db_invalidate_cached_results();