diff options
author | Noel Power <noel.power@suse.com> | 2019-07-10 10:46:44 +0000 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-07-16 22:52:25 +0000 |
commit | 6ea9c795b138ebaee40f0ab7d7741cab236cec96 (patch) | |
tree | c09365af7a74943944c22810900519603a3df6c4 /libcli | |
parent | fb49e411aa3ca397b19ea57528c2f67f9b85c877 (diff) | |
download | samba-6ea9c795b138ebaee40f0ab7d7741cab236cec96.tar.gz |
libcli/smb: clang: Fix ' 2nd function call argument is an uninitialized value'
Fixes:
/home/samba/samba/libcli/smb/smbXcli_base.c:5120:8: warning: 2nd function call argument is an uninitialized value <--[clang]
rc = gnutls_hash(hash_hnd,
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 0e45fd9836e..98c928795ec 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -4868,7 +4868,7 @@ static void smbXcli_negprot_smb2_done(struct tevent_req *subreq) uint16_t hash_selected; gnutls_hash_hd_t hash_hnd = NULL; struct smb2_negotiate_context *cipher = NULL; - struct iovec sent_iov[3]; + struct iovec sent_iov[3] = {{0}, {0}, {0}}; static const struct smb2cli_req_expected_response expected[] = { { .status = NT_STATUS_OK, |