From: Rick Bird Date: Fri, 25 Mar 2011 17:36:59 +0000 (-0400) Subject: PennMUSH Incorporation. 1.8.2-patch01 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=f89cb3a089f63520ee0fc7521de5c73a867702f4;p=cobramush.git PennMUSH Incorporation. 1.8.2-patch01 -Correction of inadvertent breakage of null comparisons. --- diff --git a/src/wild.c b/src/wild.c index 5278bfd..2567dfb 100644 --- a/src/wild.c +++ b/src/wild.c @@ -613,7 +613,7 @@ local_wild_match_case(const char *RESTRICT s, const char *RESTRICT d, int cs) return quick_wild_new(s, d, cs); } } else - return 0; + return (!d || !*d) ? 1 : 0; } /** Does a string contain a wildcard character (* or ?)?