torture: Fix the clang build
authorVolker Lendecke <vl@samba.org>
Thu, 1 Nov 2018 11:09:14 +0000 (12:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 11:16:07 +0000 (12:16 +0100)
It's used uninitialized if an early torture_assert fails

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13646

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov  1 17:34:31 CET 2018 on sn-devel-144

(cherry picked from commit 9b28d47b0d86570be5a7c5628e460e01207afb00)

Autobuild-User(v4-9-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-9-test): Tue Nov  6 12:16:07 CET 2018 on sn-devel-144

source4/torture/vfs/fruit.c

index 6dd96853a3818e9c552963ea3614895996af7dfe..6bdcae6c877f390fcbe7ad44d9d622d78375f591 100644 (file)
@@ -5461,7 +5461,7 @@ static bool test_empty_stream_do_one(
 {
        bool ret = false;
        NTSTATUS status;
-       struct smb2_handle baseh;
+       struct smb2_handle baseh = {{0}};
        struct smb2_handle streamh;
        struct smb2_create create;
        union smb_setfileinfo sfinfo;