git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8125503
)
nfs4acls: Use talloc_zero()
author
Volker Lendecke
<vl@samba.org>
Tue, 11 Aug 2015 11:33:40 +0000
(13:33 +0200)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/modules/nfs4_acls.c
b/source3/modules/nfs4_acls.c
index 2473c44f3df2826fee7e1b0382cb7675c71743ae..2cf0ebe797edbdd9d45cd0ce0aaa05fde996d2f9 100644
(file)
--- 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"));