From: Volker Lendecke Date: Thu, 1 Nov 2018 11:09:14 +0000 (+0100) Subject: torture: Fix the clang build X-Git-Tag: samba-4.8.8~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51ef80a7aa289d6b42c481640d823284b83e67d;p=thirdparty%2Fsamba.git torture: Fix the clang build 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 Reviewed-by: Ralph Boehme Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Thu Nov 1 17:34:31 CET 2018 on sn-devel-144 (cherry picked from commit 9b28d47b0d86570be5a7c5628e460e01207afb00) Autobuild-User(v4-8-test): Karolin Seeger Autobuild-Date(v4-8-test): Tue Nov 6 13:44:37 CET 2018 on sn-devel-144 --- diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index 66cd0b6d4b9..1232aaec92a 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -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;