diff options
Diffstat (limited to 'src/core/misc.c')
-rw-r--r-- | src/core/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index 4cdcf4de..55f61dda 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -454,6 +454,8 @@ int match_wildcards(const char *cmask, const char *data) if (p1 != NULL) *p1 = p1 == p2 ? '?' : '*'; } + while (*mask == '*') mask++; + ret = data != NULL && *data == '\0' && *mask == '\0'; g_free(newmask); |