Add NULL pointer check in file_valid_extension

This commit is contained in:
Moritz Lipp 2012-03-15 16:32:03 +01:00
parent 783c9f2748
commit ce2113bbee

View file

@ -54,7 +54,7 @@ file_get_extension(const char* path)
bool bool
file_valid_extension(zathura_t* zathura, const char* path) file_valid_extension(zathura_t* zathura, const char* path)
{ {
if (path == NULL) { if (zathura == NULL || path == NULL) {
return false; return false;
} }