From: Ralph Boehme Date: Mon, 14 Jan 2019 12:50:31 +0000 (+0100) Subject: vfs: use struct initializer in smb_vfs_call_get_dos_attributes_send X-Git-Tag: talloc-2.1.15~25 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=3672f02e4769da244d5c2ba82b46921a88fa9472;p=samba.git vfs: use struct initializer in smb_vfs_call_get_dos_attributes_send Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 5e0ca091f7b..6d304f068de 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -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,