summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-11-05 21:54:21 +0100
committerJeremy Allison <jra@samba.org>2019-11-06 20:36:35 +0000
commit2d5aba4d8633d9cf62f6ed7847dad9ebc41f46ce (patch)
tree4e26b27a9eeff0b20634ad39cd8b5d10c94bb0a8
parent001371f45e5a069aa9cfaef9c35dc47b371935a8 (diff)
downloadsamba-2d5aba4d8633d9cf62f6ed7847dad9ebc41f46ce.tar.gz
smbd: Use struct initialization instead of ZERO_STRUCT()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/modules/vfs_full_audit.c4
1 files changed, 1 insertions, 3 deletions
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,