Commit ce2113bb authored by Moritz Lipp's avatar Moritz Lipp

Add NULL pointer check in file_valid_extension

parent 783c9f27
......@@ -54,7 +54,7 @@ file_get_extension(const char* path)
file_valid_extension(zathura_t* zathura, const char* path)
if (path == NULL) {
if (zathura == NULL || path == NULL) {
return false;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment