libcli/smb: clang: Fix ' 2nd function call argument is an uninitialized value'
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 10:46:44 +0000 (10:46 +0000)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:25 +0000 (22:52 +0000)
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>
libcli/smb/smbXcli_base.c

index 0e45fd9836eb2543721939d5bc4dd45a2f4ad9bf..98c928795eca348827f37272ca1ae337a3196395 100644 (file)
@@ -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,