allow NULL extlist in match_extension
This commit is contained in:
parent
8892038d77
commit
ccbf2991cf
1 changed files with 3 additions and 0 deletions
3
util.c
3
util.c
|
|
@ -356,6 +356,9 @@ int match_extension(const char *filename, const char *extlist)
|
|||
int len;
|
||||
const char *p, *q;
|
||||
|
||||
if (!extlist)
|
||||
return 0;
|
||||
|
||||
while (*base == '.')
|
||||
base++;
|
||||
len = strlen(base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue