pam_systemd: remove unused null check

username was already checked with isempty() and cannot be null at
this point.

CID#1237766
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-11-15 23:47:39 +01:00
parent 85e74b26c3
commit 8e24a4f8b6
+1 -1
View File
@@ -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;
}