From: Volker Lendecke Date: Tue, 11 Aug 2015 11:33:40 +0000 (+0200) Subject: nfs4acls: Use talloc_zero() X-Git-Tag: talloc-2.1.4~410 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=68c64c7b3012b964fdbc37cf9922f896aceb6f39 nfs4acls: Use talloc_zero() Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c index 2473c44f3df..2cf0ebe797e 100644 --- a/source3/modules/nfs4_acls.c +++ b/source3/modules/nfs4_acls.c @@ -188,8 +188,7 @@ struct SMB4ACE_T *smb_add_ace4(struct SMB4ACL_T *acl, SMB_ACE4PROP_T *prop) { struct SMB4ACE_T *ace; - ace = (struct SMB4ACE_T *)TALLOC_ZERO_SIZE( - acl, sizeof(struct SMB4ACE_T)); + ace = talloc_zero(acl, struct SMB4ACE_T); if (ace==NULL) { DEBUG(0, ("TALLOC_SIZE failed\n"));