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 5e0ca091f7b01b3a50d7dc1f20aacb801322fc5a..6d304f068de302737927de60b39db4d374b36aeb 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,