check for NULL

SVN revision: 54785
This commit is contained in:
Sebastian Dransfeld 2010-11-22 14:16:19 +00:00
parent 87baeb631b
commit 9941eba9d6
1 changed files with 1 additions and 1 deletions

View File

@ -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;