Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/entrance
Dir : e17/apps/entrance/src/client Modified Files: entrance_session.c Log Message: Don't use strlen to check if a string is empty =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_session.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -3 -r1.76 -r1.77 --- entrance_session.c 10 Oct 2005 10:33:29 -0000 1.76 +++ entrance_session.c 4 Nov 2005 07:51:00 -0000 1.77 @@ -267,7 +267,7 @@ eu = entrance_user_new(strdup(user), NULL, e->session); if (!(e->session_selected) && (eu->session) - && (strlen(eu->session) > 0)) + && (eu->session[0] != 0)) { if ((exs = evas_hash_find(e->config->sessions.hash, eu->session))) { @@ -376,7 +376,7 @@ exs = evas_hash_find(e->config->sessions.hash, e->session); entrance_auth_setup_environment(e->auth, e->display); - if ((exs->session) && (strlen(exs->session) > 0)) + if ((exs->session) && (exs->session[0] != 0)) { if (!strcmp(exs->session, "default")) snprintf(buf, PATH_MAX, "%s", ENTRANCE_XSESSION); @@ -485,7 +485,7 @@ entrance_session_free(e); /* replace this process with a clean small one that just waits for its */ /* child to exit.. passed on the cmd-line */ - execl(shell, shell, "-l", "-c", buf, NULL); + execl(shell, shell, "-c", buf, NULL); } ------------------------------------------------------- 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