Fix broken check

This commit is contained in:
Sebastian Ramacher 2014-09-07 19:10:54 +02:00
parent 7721b237e4
commit c69ce573de

View file

@ -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;
}