From ccbf2991cf8ee6bca6eaf4c4b3bbdcbcf881846e Mon Sep 17 00:00:00 2001 From: Charlie Gordon Date: Thu, 2 Jan 2014 10:12:59 +0000 Subject: [PATCH] allow NULL extlist in match_extension --- util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.c b/util.c index 17a53de..27e85a9 100644 --- a/util.c +++ b/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);