forked from enlightenment/efl
efreet - convert crash into NULL mimes when no mime db found
so ok - efreet crashed letting you know you have a missing mimedb... return NULL instead fixes T4425 :) - rememebr to kill your efreetd's to get a new mimedb - log out and in will do that.
This commit is contained in:
parent
27d428a6e1
commit
510c093602
|
@ -454,6 +454,7 @@ efreet_mime_type_get(const char *file)
|
||||||
const char *type = NULL;
|
const char *type = NULL;
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
|
||||||
|
if (!mimedb_ptr) return NULL;
|
||||||
|
|
||||||
if ((type = efreet_mime_special_check(file)))
|
if ((type = efreet_mime_special_check(file)))
|
||||||
return type;
|
return type;
|
||||||
|
@ -586,6 +587,7 @@ efreet_mime_globs_type_get(const char *file)
|
||||||
unsigned int i, n;
|
unsigned int i, n;
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
|
||||||
|
if (!mimedb_ptr) return NULL;
|
||||||
|
|
||||||
/* Check in the extension hash for the type */
|
/* Check in the extension hash for the type */
|
||||||
ext = strchr(file, '.');
|
ext = strchr(file, '.');
|
||||||
|
|
Loading…
Reference in New Issue