Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/client


Modified Files:
        entrance_auth.c 


Log Message:
Don't use e or e->pw before they are checked.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_auth.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- entrance_auth.c     9 Aug 2005 08:09:01 -0000       1.25
+++ entrance_auth.c     9 Aug 2005 08:11:32 -0000       1.26
@@ -384,8 +384,6 @@
    char *mail;
    char buf[PATH_MAX];
 
-   snprintf(buf, PATH_MAX, "%s/.Xauthority", e->pw->pw_dir);
-
    if (!e || !e->pw)
       return;
 
@@ -397,6 +395,7 @@
 #endif
 
    e->env = environ;
+   snprintf(buf, PATH_MAX, "%s/.Xauthority", e->pw->pw_dir);
    setenv("XAUTHORITY", buf, 1);
    setenv("TERM", "vt100", 0);  // TERM=linux?
    setenv("HOME", e->pw->pw_dir, 1);




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to