discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3f3322cb9ccb1e682b63a8de34066ec07c6c0eac

commit 3f3322cb9ccb1e682b63a8de34066ec07c6c0eac
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Thu Mar 13 12:06:04 2014 -0400

    null check auth current user get
    
    CID 1155286
---
 src/bin/e_auth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_auth.c b/src/bin/e_auth.c
index 356be0a..85f7ffe 100644
--- a/src/bin/e_auth.c
+++ b/src/bin/e_auth.c
@@ -26,6 +26,7 @@ _auth_auth_get_current_user(void)
    struct passwd *pwent = NULL;
 
    pwent = getpwuid(getuid());
+   if (!pwent) return NULL;
    user = strdup(pwent->pw_name);
    return user;
 }

-- 


Reply via email to