mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 07:23:53 +01:00
Fix segmentation fault in extension checking
This commit is contained in:
parent
5847b5e250
commit
b4f834d462
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);
|
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);
|
girara_list_iterator_t* iter = girara_list_iterator(zathura->plugins.plugins);
|
||||||
if (iter == NULL) {
|
if (iter == NULL) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user