vfs: Replace a call to TALLOC_ZERO()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Apr 2021 14:57:26 +0000 (14:57 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 19 Apr 2021 18:18:31 +0000 (18:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/vfs.c

index b0f65e19df19e378b36be5a44496d2c302ef0e82..d081a8935bf13992d84206b59f03e111bc3bd53d 100644 (file)
@@ -238,7 +238,7 @@ void *vfs_add_fsp_extension_notype(vfs_handle_struct *handle,
                return ext_data;
        }
 
-       ext = (struct vfs_fsp_data *)TALLOC_ZERO(
+       ext = talloc_zero_size(
                handle->conn, sizeof(struct vfs_fsp_data) + ext_size);
        if (ext == NULL) {
                return NULL;