Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_bg.c Log Message: Better check for 0 stringlength. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_bg.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- e_bg.c 5 Apr 2007 18:01:35 -0000 1.28 +++ e_bg.c 17 Aug 2007 17:23:06 -0000 1.29 @@ -152,7 +152,7 @@ if (transition == E_BG_TRANSITION_START) trans = e_config->transition_start; else if (transition == E_BG_TRANSITION_DESK) trans = e_config->transition_desk; else if (transition == E_BG_TRANSITION_CHANGE) trans = e_config->transition_change; - if ((!trans) || (strlen(trans) < 1)) transition = E_BG_TRANSITION_NONE; + if ((!trans) || (!trans[0])) transition = E_BG_TRANSITION_NONE; desk = e_desk_current_get(zone); if (desk) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs