]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nfs4acls: Use talloc_zero()
authorVolker Lendecke <vl@samba.org>
Wed, 12 Aug 2015 05:31:01 +0000 (07:31 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 13 Aug 2015 12:40:16 +0000 (14:40 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/nfs4_acls.c

index 6987cff16c093dfe13aac556bb5503e2cdf0e9b2..2473c44f3df2826fee7e1b0382cb7675c71743ae 100644 (file)
@@ -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"));