summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-11-04 08:21:28 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-11-04 08:21:28 +0000
commitce987876a8435b8cd48f7b7c3356d8f589471c38 (patch)
tree548263e5abafce2df4278498256af14b6587bca4 /legacy/emotion/src/lib/emotion_smart.c
parent95b180caa01f3ed3084a056a0240c37bd70dcb89 (diff)
Don't use strlen to check for empty string.
SVN revision: 18271
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 6232115d9d..d7ff42b68f 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -187,7 +187,7 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
187 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 187 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
188 188
189 if ((file) && (sd->file) && (!strcmp(file, sd->file))) return; 189 if ((file) && (sd->file) && (!strcmp(file, sd->file))) return;
190 if ((file) && (strlen(file) > 0)) 190 if ((file) && (file[0] != 0))
191 { 191 {
192 int w, h; 192 int w, h;
193 sd->file = strdup(file); 193 sd->file = strdup(file);