Efreet: Verify that path contains '.'

Thanks Heinervdm

SVN revision: 57435
This commit is contained in:
Sebastian Dransfeld 2011-02-28 20:15:55 +00:00
parent 61486fad64
commit d5927220e8
1 changed files with 1 additions and 1 deletions

View File

@ -1205,7 +1205,7 @@ efreet_desktop_changes_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUSED
case ECORE_FILE_EVENT_DELETED_FILE:
case ECORE_FILE_EVENT_MODIFIED:
ext = strrchr(path, '.');
if (!strcmp(ext, ".desktop") || !strcmp(ext, ".directory"))
if (ext && (!strcmp(ext, ".desktop") || !strcmp(ext, ".directory")))
efreet_cache_desktop_update();
break;