[systemd-commits] src/login

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Sat Nov 15 14:47:52 PST 2014


 src/login/pam_systemd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8e24a4f8b6f53883ea515ae8f27fb6b1795973b4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Sat Nov 15 23:43:09 2014 +0100

    pam_systemd: remove unused null check
    
    username was already checked with isempty() and cannot be null at
    this point.
    
    CID#1237766

diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
index 9250a69..4974c51 100644
--- a/src/login/pam_systemd.c
+++ b/src/login/pam_systemd.c
@@ -114,7 +114,7 @@ static int get_user_data(
         }
 
         *ret_pw = pw;
-        *ret_username = username ? username : pw->pw_name;
+        *ret_username = username;
 
         return PAM_SUCCESS;
 }



More information about the systemd-commits mailing list