From: Volker Lendecke Date: Tue, 5 Nov 2019 20:54:21 +0000 (+0100) Subject: smbd: Use struct initialization instead of ZERO_STRUCT() X-Git-Tag: talloc-2.3.1~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d5aba4d8633d9cf62f6ed7847dad9ebc41f46ce;p=thirdparty%2Fsamba.git smbd: Use struct initialization instead of ZERO_STRUCT() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index efb34ca72b3..8e46f983390 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1875,12 +1875,10 @@ static int smb_full_audit_chflags(vfs_handle_struct *handle, static struct file_id smb_full_audit_file_id_create(struct vfs_handle_struct *handle, const SMB_STRUCT_STAT *sbuf) { - struct file_id id_zero; + struct file_id id_zero = { 0 }; struct file_id result; struct file_id_buf idbuf; - ZERO_STRUCT(id_zero); - result = SMB_VFS_NEXT_FILE_ID_CREATE(handle, sbuf); do_log(SMB_VFS_OP_FILE_ID_CREATE,