diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-11 13:33:40 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-08-13 14:40:16 +0200 |
commit | 68c64c7b3012b964fdbc37cf9922f896aceb6f39 (patch) | |
tree | 466d07d81e90b09eb1e15a720678dbcd1dda1734 /source3/modules | |
parent | 8125503339bee667cda71edb476ce0ca1b7f9c54 (diff) | |
download | samba-68c64c7b3012b964fdbc37cf9922f896aceb6f39.tar.gz |
nfs4acls: Use talloc_zero()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/nfs4_acls.c | 3 |
1 files changed, 1 insertions, 2 deletions
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")); |