Don't use strlen to check for empty string.

SVN revision: 18271
This commit is contained in:
sebastid 2005-11-04 08:21:28 +00:00 committed by sebastid
parent 95b180caa0
commit ce987876a8
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
if ((file) && (sd->file) && (!strcmp(file, sd->file))) return;
if ((file) && (strlen(file) > 0))
if ((file) && (file[0] != 0))
{
int w, h;
sd->file = strdup(file);