summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-24 10:00:50 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-24 10:00:50 +0900
commit510c0936023e3969918d14fb4561411e21229981 (patch)
treecd5b3536546913b663c3b70fa10e84f66b5b8fe8 /src/lib/efreet
parent27d428a6e18c79d9d0883ab91de4b668e5ddaf62 (diff)
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.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_mime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet_mime.c b/src/lib/efreet/efreet_mime.c
index 4426b6a130..6cb331b43b 100644
--- a/src/lib/efreet/efreet_mime.c
+++ b/src/lib/efreet/efreet_mime.c
@@ -454,6 +454,7 @@ efreet_mime_type_get(const char *file)
454 const char *type = NULL; 454 const char *type = NULL;
455 455
456 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL); 456 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
457 if (!mimedb_ptr) return NULL;
457 458
458 if ((type = efreet_mime_special_check(file))) 459 if ((type = efreet_mime_special_check(file)))
459 return type; 460 return type;
@@ -586,6 +587,7 @@ efreet_mime_globs_type_get(const char *file)
586 unsigned int i, n; 587 unsigned int i, n;
587 588
588 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL); 589 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
590 if (!mimedb_ptr) return NULL;
589 591
590 /* Check in the extension hash for the type */ 592 /* Check in the extension hash for the type */
591 ext = strchr(file, '.'); 593 ext = strchr(file, '.');