From: Björn Jacke Date: Mon, 19 Oct 2020 00:35:02 +0000 (+0200) Subject: torture/sharemode: fix empty initializer compile warning X-Git-Tag: talloc-2.3.2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4f3354821a919ec60eb3af55709e7055513cc24;p=thirdparty%2Fsamba.git torture/sharemode: fix empty initializer compile warning Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/smb2/sharemode.c b/source4/torture/smb2/sharemode.c index ced4047d77d..97381b56f17 100644 --- a/source4/torture/smb2/sharemode.c +++ b/source4/torture/smb2/sharemode.c @@ -115,7 +115,7 @@ bool torture_smb2_hold_sharemode(struct torture_context *tctx) for (i = 0; i < ARRAY_SIZE(hold_sharemode_table); i++) { struct hold_sharemode_info *info = &hold_sharemode_table[i]; - struct smb2_create create = { }; + struct smb2_create create = { 0 }; create.in.desired_access = SEC_RIGHTS_FILE_ALL; create.in.alloc_size = 0; @@ -184,7 +184,7 @@ bool torture_smb2_check_sharemode(struct torture_context *tctx) const char *sharemode_string, *access_string, *filename, *operation; uint32_t sharemode, access; struct smb2_tree *tree; - struct smb2_create create = { }; + struct smb2_create create = { 0 }; NTSTATUS status; bool ret = true; int error = 0; @@ -479,7 +479,7 @@ static bool test_smb2_sharemode_access(struct torture_context *tctx, for (i = 0; i < ARRAY_SIZE(sharemode_table); i++) { struct sharemode_info *info = &sharemode_table[i]; - struct smb2_create create1 = { }, create2 = { }; + struct smb2_create create1 = { 0 }, create2 = { 0 }; NTSTATUS expected_status; torture_comment(tctx, "index %3d, sharemode %3s, " @@ -560,7 +560,7 @@ static bool test_smb2_access_sharemode(struct torture_context *tctx, for (i = 0; i < ARRAY_SIZE(sharemode_table); i++) { struct sharemode_info *info = &sharemode_table[i]; - struct smb2_create create1 = { }, create2 = { }; + struct smb2_create create1 = { 0 }, create2 = { 0 }; NTSTATUS expected_status; torture_comment(tctx, "index %3d, access mask 0x%06x, "