mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-27 00:04:41 +01:00
Add NULL pointer check in file_valid_extension
This commit is contained in:
parent
783c9f2748
commit
ce2113bbee
1 changed files with 1 additions and 1 deletions
2
utils.c
2
utils.c
|
@ -54,7 +54,7 @@ file_get_extension(const char* path)
|
|||
bool
|
||||
file_valid_extension(zathura_t* zathura, const char* path)
|
||||
{
|
||||
if (path == NULL) {
|
||||
if (zathura == NULL || path == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue