Fix segmentation fault in extension checking

This commit is contained in:
Moritz Lipp 2011-05-26 12:05:10 +02:00
parent 5847b5e250
commit b4f834d462

View File

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