From f89cb3a089f63520ee0fc7521de5c73a867702f4 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Fri, 25 Mar 2011 13:36:59 -0400 Subject: [PATCH] PennMUSH Incorporation. 1.8.2-patch01 -Correction of inadvertent breakage of null comparisons. --- src/wild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ?)? -- 2.30.2