torture/sharemode: fix empty initializer compile warning
authorBjörn Jacke <bj@sernet.de>
Mon, 19 Oct 2020 00:35:02 +0000 (02:35 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Nov 2020 06:53:43 +0000 (06:53 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/smb2/sharemode.c

index ced4047d77d0ab4b3100592ebadcb84ba55b9fdf..97381b56f17fe17866ceeb6840636c8a7fe727ab 100644 (file)
@@ -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 = { };
 
                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 = { };
        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, "