Don't segfault if 'icon' is null

SVN revision: 42490
This commit is contained in:
Davide Andreoli 2009-09-14 20:18:25 +00:00
parent 8e6a393cf9
commit 5f6ba77546
1 changed files with 2 additions and 0 deletions

View File

@ -314,6 +314,8 @@ efreet_icon_remove_extension(const char *icon)
Eina_List *l;
char *tmp = NULL, *ext = NULL;
if (!icon) return NULL;
tmp = strdup(icon);
ext = strrchr(tmp, '.');
if (ext)