fix up fnmatch weirdness

SVN revision: 15043
This commit is contained in:
Carsten Haitzler 2005-05-31 23:02:29 +00:00
parent 3a829a464f
commit 9398e011ff
1 changed files with 5 additions and 0 deletions

View File

@ -1533,6 +1533,11 @@ _edje_fetch(Evas_Object *obj)
int
_edje_glob_match(char *str, char *glob)
{
if (glob[0] == 0)
{
if (str[0] == 0) return 1;
return 0;
}
if (!strcmp(glob, "*")) return 1;
if (!fnmatch(glob, str, 0)) return 1;
return 0;