From 1c6d31a8b16bc8e919d8f4fbdf5fc7164170f0d5 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 19 Feb 2016 10:03:50 +0100 Subject: [PATCH] Check if there is a database Signed-off-by: Sebastian Ramacher --- zathura/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/completion.c b/zathura/completion.c index 696aabb..0081f22 100644 --- a/zathura/completion.c +++ b/zathura/completion.c @@ -190,7 +190,7 @@ list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, in girara_list_free(names); } - if (show_recent > 0) { + if (show_recent > 0 && zathura->database != NULL) { girara_list_t* recent_files = zathura_db_get_recent_files(zathura->database, show_recent); if (recent_files == NULL) { goto error_free;