Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_config Modified Files: ecore_config.c ecore_config_storage.c Log Message: Don't use strlen to check if a string is empty =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -3 -r1.63 -r1.64 --- ecore_config.c 21 Oct 2005 12:11:37 -0000 1.63 +++ ecore_config.c 4 Nov 2005 07:54:25 -0000 1.64 @@ -1541,7 +1541,7 @@ return ECORE_CONFIG_ERR_IGNORED; DEBUG = -1; - if ((p = getenv("ECORE_CONFIG_DEBUG")) && strlen(p) > 0) + if ((p = getenv("ECORE_CONFIG_DEBUG")) && p[0] != 0) { DEBUG = atoi(p); } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config_storage.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ecore_config_storage.c 6 Oct 2005 03:03:34 -0000 1.11 +++ ecore_config_storage.c 4 Nov 2005 07:54:26 -0000 1.12 @@ -113,7 +113,7 @@ file_ptr--; *file_ptr = '\0'; - if ((strlen(file_tmp) > 0) && stat(file_tmp, &status)) + if ((file_tmp[0] != 0) && stat(file_tmp, &status)) { _ecore_config_recurse_mkdir(file_tmp); mkdir(file_tmp, S_IRUSR | S_IWUSR | S_IXUSR); ------------------------------------------------------- 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