Use the common regex engine in more places.

In particular, in autopickup_exceptions and user sounds.
This commit is contained in:
Sean Hunt
2015-05-24 22:23:17 +09:00
committed by nhmall
parent 49b9f6c926
commit 84d63e169b
7 changed files with 29 additions and 48 deletions

View File

@@ -85,7 +85,7 @@ regex_match(const char *s, struct nhregex *re)
{
int result;
if (!re)
if (!re || !s)
return FALSE;
if ((result = regexec(&re->re, s, 0, (genericptr_t) 0, 0))) {