diff options
author | Björn Jacke <bj@sernet.de> | 2020-10-19 02:35:02 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2020-11-10 06:53:43 +0000 |
commit | e4f3354821a919ec60eb3af55709e7055513cc24 (patch) | |
tree | f699384ea0e3da2a2ab678dcc2b0f420037c22de /source4 | |
parent | aa8d6c779ca89d6be1c8b973d3ea60e6073bf899 (diff) | |
download | samba-e4f3354821a919ec60eb3af55709e7055513cc24.tar.gz |
torture/sharemode: fix empty initializer compile warning
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/sharemode.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, " |