diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-12 07:31:01 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-08-13 14:40:16 +0200 |
commit | 8125503339bee667cda71edb476ce0ca1b7f9c54 (patch) | |
tree | 08ac2708a0c69b02432b9a57972b0729066bf0c0 /source3/modules/nfs4_acls.c | |
parent | 1ba9bbd4f3165f5b793a30bd6bddc548f210f9e0 (diff) | |
download | samba-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/nfs4_acls.c')
-rw-r--r-- | source3/modules/nfs4_acls.c | 5 |
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")); |