mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 09:55:59 +01:00
Check if there is a database
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
334189e961
commit
1c6d31a8b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue