summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-27 18:40:31 +0200
committerVolker Lendecke <vl@samba.org>2009-05-28 10:52:04 +0200
commit01ea4249da246b0b99a4b89eb36aa6b1c0d46994 (patch)
tree1afaf04b06ca37d89c0bb6048f0951bab6bcfc3d /source3
parentd07464b21fe652e205f5eb2c74d12495bab100ce (diff)
downloadsamba-01ea4249da246b0b99a4b89eb36aa6b1c0d46994.tar.gz
samba-01ea4249da246b0b99a4b89eb36aa6b1c0d46994.tar.bz2
samba-01ea4249da246b0b99a4b89eb36aa6b1c0d46994.zip
TALLOC_ZERO_P->talloc_zero
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 164e5853df..b4e1bd436c 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -2022,7 +2022,8 @@ NTSTATUS make_pdb_method( struct pdb_methods **methods )
{
/* allocate memory for the structure as its own talloc CTX */
- if ( !(*methods = TALLOC_ZERO_P(talloc_autofree_context(), struct pdb_methods) ) ) {
+ *methods = talloc_zero(talloc_autofree_context(), struct pdb_methods);
+ if (*methods == NULL) {
return NT_STATUS_NO_MEMORY;
}