Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/emotion
Dir : e17/libs/emotion/src/lib Modified Files: emotion_smart.c Log Message: Don't use strlen to check for empty string. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/emotion/src/lib/emotion_smart.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- emotion_smart.c 2 Oct 2005 12:19:36 -0000 1.18 +++ emotion_smart.c 4 Nov 2005 08:21:28 -0000 1.19 @@ -187,7 +187,7 @@ 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); ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs