From: englebass Date: Mon, 22 Nov 2010 14:16:19 +0000 (+0000) Subject: check for NULL X-Git-Tag: 2.0_alpha~51^2~261 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e7a0269beabf4b4a5d3fa8c69434b0821e4b010;p=framework%2Fuifw%2Fefreet.git check for NULL git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@54785 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/efreet_cache.c b/src/lib/efreet_cache.c index b6942a8..038e1e6 100644 --- a/src/lib/efreet_cache.c +++ b/src/lib/efreet_cache.c @@ -289,9 +289,9 @@ efreet_icon_cache_update_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUS Eet_File *tmp = NULL; Efreet_Event_Cache_Update *ev = NULL; - if (strcmp(path, icon_cache_file)) return; if (event != ECORE_FILE_EVENT_CREATED_FILE && event != ECORE_FILE_EVENT_MODIFIED) return; + if (!icon_cache_file || strcmp(path, icon_cache_file)) return; tmp = eet_open(icon_cache_file, EET_FILE_MODE_READ); if (!tmp) return;