summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-12 07:31:01 +0200
committerVolker Lendecke <vl@samba.org>2015-08-13 14:40:16 +0200
commit8125503339bee667cda71edb476ce0ca1b7f9c54 (patch)
tree08ac2708a0c69b02432b9a57972b0729066bf0c0 /source3/modules
parent1ba9bbd4f3165f5b793a30bd6bddc548f210f9e0 (diff)
downloadsamba-8125503339bee667cda71edb476ce0ca1b7f9c54.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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c
index 6987cff16c0..2473c44f3df 100644
--- a/source3/modules/nfs4_acls.c
+++ b/source3/modules/nfs4_acls.c
@@ -170,8 +170,9 @@ static uint32_t map_windows_ace_flags_to_nfs4_ace_flags(uint32_t win_ace_flags)
struct SMB4ACL_T *smb_create_smb4acl(TALLOC_CTX *mem_ctx)
{
- struct SMB4ACL_T *theacl = (struct SMB4ACL_T *)TALLOC_ZERO_SIZE(
- mem_ctx, sizeof(struct SMB4ACL_T));
+ struct SMB4ACL_T *theacl;
+
+ theacl = talloc_zero(mem_ctx, struct SMB4ACL_T);
if (theacl==NULL)
{
DEBUG(0, ("TALLOC_SIZE failed\n"));