diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-02-22 17:04:12 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-02-22 16:04:12 +0000 |
commit | bcc3b81b920491fa9ec94e3fc584cf7384e8380d (patch) | |
tree | 1f3f87116a8e5ad9a820173beacbaa0d399bd9f4 /modules/pam_unix | |
parent | 9a48bb9ea3736f6ba3eb9c3f3a026124f246b6ab (diff) | |
download | pam-bcc3b81b920491fa9ec94e3fc584cf7384e8380d.tar.gz pam-bcc3b81b920491fa9ec94e3fc584cf7384e8380d.tar.bz2 pam-bcc3b81b920491fa9ec94e3fc584cf7384e8380d.zip |
pam_unix: drop cast to same type
Diffstat (limited to 'modules/pam_unix')
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 897de6ce..c3c6ea7a 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -779,7 +779,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv) * password is acceptable. */ - if (*(const char *)pass_new == '\0') { /* "\0" password = NULL */ + if (*pass_new == '\0') { /* "\0" password = NULL */ pass_new = NULL; } retval = _pam_unix_approve_pass(pamh, ctrl, pass_old, |