diff --git a/database-sqlite.c b/database-sqlite.c index 81c91ba..5855f67 100644 --- a/database-sqlite.c +++ b/database-sqlite.c @@ -381,7 +381,7 @@ sqlite_load_bookmarks(zathura_database_t* db, const char* file) girara_list_t* result = girara_sorted_list_new2((girara_compare_function_t) zathura_bookmarks_compare, (girara_free_function_t) zathura_bookmark_free); - if (result != NULL) { + if (result == NULL) { sqlite3_finalize(stmt); return NULL; }