e_util_glob functions now automatch when pointers are the same

This commit is contained in:
Mike Blumenkrantz 2014-01-30 13:10:28 -05:00
parent d3468dd920
commit 9409f435a3
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ e_util_glob_match(const char *str, const char *pattern)
if (str[0] == 0) return 1;
return 0;
}
if (str == pattern) return 1;
if (!strcmp(pattern, "*")) return 1;
if (!fnmatch(pattern, str, 0)) return 1;
return 0;
@ -79,6 +80,7 @@ e_util_glob_case_match(const char *str, const char *pattern)
const char *p;
char *tstr, *tglob, *tp;
if (str == pattern) return 1;
if (pattern[0] == 0)
{
if (str[0] == 0) return 1;