Enlightenment CVS committal Author : titan Project : e17 Module : proto
Dir : e17/proto/empower/src/bin/ewl Modified Files: empower_gui_ewl.c Log Message: Add a null check. =================================================================== RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_gui_ewl.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- empower_gui_ewl.c 7 Sep 2006 20:21:09 -0000 1.9 +++ empower_gui_ewl.c 7 Sep 2006 20:29:10 -0000 1.10 @@ -25,8 +25,10 @@ char username[256]; user = getuid(); - user_name = getpwuid(user); - snprintf(username, 256, "%s's password", user_name->pw_name); + if ((user_name = getpwuid(user)) != NULL) + snprintf(username, 256, "%s's password", user_name->pw_name); + else + snprintf(username, 256, "Your Password"); int num_roots=0; int root_w=0, root_h=0; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs