summaryrefslogtreecommitdiff
path: root/source3/pam_smbpass
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-01-22 10:16:28 +0100
committerJeremy Allison <jra@samba.org>2015-01-22 22:51:59 +0100
commit7afff0c52e6b1af7534fc7b410bcd67611a5a08f (patch)
treef0a8405cec5ab76baeb9b81e38a96ecfe7c14e9c /source3/pam_smbpass
parentcb27bd1022caa42ccbf37e827347c13fa54619c6 (diff)
downloadsamba-7afff0c52e6b1af7534fc7b410bcd67611a5a08f.tar.gz
s3-pam_smbpass: Correctly initialize variables.
This fixes a coverity warning. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jan 22 22:51:59 CET 2015 on sn-devel-104
Diffstat (limited to 'source3/pam_smbpass')
-rw-r--r--source3/pam_smbpass/pam_smb_passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/pam_smbpass/pam_smb_passwd.c b/source3/pam_smbpass/pam_smb_passwd.c
index dedfda03ffb..87282b54712 100644
--- a/source3/pam_smbpass/pam_smb_passwd.c
+++ b/source3/pam_smbpass/pam_smb_passwd.c
@@ -101,8 +101,8 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
struct samu *sampass = NULL;
void (*oldsig_handler)(int);
const char *user;
- char *pass_old;
- char *pass_new;
+ char *pass_old = NULL;
+ char *pass_new = NULL;
TALLOC_CTX *frame = talloc_stackframe();
/* Samba initialization. */