From 6f4faecf91e08d7684030b3b28cef706e5296b21 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 7 Apr 2017 01:02:07 +0200 Subject: Fix a bug that resets the lists on reload. --- src/lists.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit