1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

nfs4acls: Use talloc_zero()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke 2015-08-12 07:31:01 +02:00
parent 1ba9bbd4f3
commit 8125503339

View 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"));