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