vfs: use struct initializer in smb_vfs_call_get_dos_attributes_send
authorRalph Boehme <slow@samba.org>
Mon, 14 Jan 2019 12:50:31 +0000 (13:50 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 14 Jan 2019 18:13:14 +0000 (19:13 +0100)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/vfs.c

index 5e0ca09..6d304f0 100644 (file)
@@ -2409,7 +2409,10 @@ struct tevent_req *smb_vfs_call_get_dos_attributes_send(
        }
 
        VFS_FIND(get_dos_attributes_send);
-       state->recv_fn = handle->fns->get_dos_attributes_recv_fn;
+
+       *state = (struct smb_vfs_call_get_dos_attributes_state) {
+               .recv_fn = handle->fns->get_dos_attributes_recv_fn,
+       };
 
        subreq = handle->fns->get_dos_attributes_send_fn(mem_ctx,
                                                         ev,