Drop icons without extenstion

SVN revision: 29346
This commit is contained in:
Sebastian Dransfeld 2007-04-04 11:54:23 +00:00
parent 0a2d7b785e
commit 170542eef2
1 changed files with 6 additions and 2 deletions

View File

@ -671,8 +671,12 @@ efreet_icon_directory_cache(Efreet_Icon_Theme *theme,
name_strs[0] = name; name_strs[0] = name;
/* Drop the extension to cache icon name */ /* Drop the extension to cache icon name */
ext = strrchr(name, '.'); if (!ext)
if (ext) {
FREE(name);
continue;
}
else
{ {
/* we need to skip .icon files as their used for /* we need to skip .icon files as their used for
* informational purposes only */ * informational purposes only */