vfs: use struct initializer in smb_vfs_call_getxattrat_send()
authorRalph Boehme <slow@samba.org>
Mon, 14 Jan 2019 12:52:51 +0000 (13:52 +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 2910128..d31610f 100644 (file)
@@ -2690,7 +2690,10 @@ struct tevent_req *smb_vfs_call_getxattrat_send(
        }
 
        VFS_FIND(getxattrat_send);
-       state->recv_fn = handle->fns->getxattrat_recv_fn;
+
+       *state = (struct smb_vfs_call_getxattrat_state) {
+               .recv_fn = handle->fns->getxattrat_recv_fn,
+       };
 
        subreq = handle->fns->getxattrat_send_fn(mem_ctx,
                                                 ev,