summaryrefslogtreecommitdiff
path: root/src/login/pam_systemd.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-11-15 23:43:09 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-11-15 23:47:39 +0100
commit8e24a4f8b6f53883ea515ae8f27fb6b1795973b4 (patch)
tree76120aedcea0fcf5c4e47fdafe7d4057a17828b7 /src/login/pam_systemd.c
parent85e74b26c30b4c34a7ed8342b8f692ccdf3908b4 (diff)
pam_systemd: remove unused null check
username was already checked with isempty() and cannot be null at this point. CID#1237766
Diffstat (limited to 'src/login/pam_systemd.c')
-rw-r--r--src/login/pam_systemd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
index 9250a6903a..4974c51338 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;
}