mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-16 17:10:53 +01:00
Fix segmentation fault in extension checking
This commit is contained in:
parent
5847b5e250
commit
b4f834d462
1 changed files with 4 additions and 0 deletions
4
utils.c
4
utils.c
|
@ -57,6 +57,10 @@ file_valid_extension(zathura_t* zathura, const char* path)
|
|||
|
||||
const char* file_extension = file_get_extension(path);
|
||||
|
||||
if (file_extension == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
girara_list_iterator_t* iter = girara_list_iterator(zathura->plugins.plugins);
|
||||
if (iter == NULL) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue