From 93959279ca4a51e32ce729e79b118ac0a543b487 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 5 Jul 2010 05:56:46 +0000 Subject: [PATCH] not checking for null values?? BAD CEDRIC! NO COOKIE! SVN revision: 50042 --- src/bin/ephoto_thumb_browser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index e58968d..caff08f 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -156,7 +156,8 @@ _ephoto_access_disk(Ecore_Thread *thread, void *data) { if (ecore_thread_check(thread)) break; - type = efreet_mime_type_get((const char *)file); + if (!(type = efreet_mime_type_get((const char *)file))) + continue; fprintf(stderr, "[%s] => [%s]\n", file, type); if (!strncmp(type, "image", 5))