forked from enlightenment/efl
parent
6b0688752a
commit
2f35dd7ab3
|
@ -265,15 +265,18 @@ const char *efreet_mime_globs_type_get(const char *file)
|
||||||
* Check in the extension hash for the type
|
* Check in the extension hash for the type
|
||||||
*/
|
*/
|
||||||
ext = strchr(file, '.');
|
ext = strchr(file, '.');
|
||||||
sl = alloca(strlen(ext) + 1);
|
if (ext)
|
||||||
for (s = ext, p = sl; *s; s++, p++) *p = tolower(*s);
|
|
||||||
*p = 0;
|
|
||||||
p = sl;
|
|
||||||
while (p)
|
|
||||||
{
|
{
|
||||||
p++;
|
sl = alloca(strlen(ext) + 1);
|
||||||
if (p && (mime = ecore_hash_get(wild, p))) return mime;
|
for (s = ext, p = sl; *s; s++, p++) *p = tolower(*s);
|
||||||
p = strchr(p, '.');
|
*p = 0;
|
||||||
|
p = sl;
|
||||||
|
while (p)
|
||||||
|
{
|
||||||
|
p++;
|
||||||
|
if (p && (mime = ecore_hash_get(wild, p))) return mime;
|
||||||
|
p = strchr(p, '.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue