Make sure we have a 'file' to set, else we crash trying to get strlen

of NULL.



SVN revision: 56059
This commit is contained in:
Christopher Michael 2011-01-12 15:31:38 +00:00
parent baa156f189
commit bd2aa1b03d
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ e_icon_file_set(Evas_Object *obj, const char *file)
E_Smart_Data *sd;
int len;
if (!file) return;
if (!(sd = evas_object_smart_data_get(obj)))
return EINA_FALSE;