smbd: Use struct initialization instead of ZERO_STRUCT()
authorVolker Lendecke <vl@samba.org>
Tue, 5 Nov 2019 20:54:21 +0000 (21:54 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 6 Nov 2019 20:36:35 +0000 (20:36 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_full_audit.c

index efb34ca72b32842f0aa20c5fdacfaf8da33d7e2f..8e46f983390f9b98750402b11d1b4de4af649594 100644 (file)
@@ -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,