allow NULL extlist in match_extension

This commit is contained in:
Charlie Gordon 2014-01-02 10:12:59 +00:00
commit ccbf2991cf

3
util.c
View file

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