From: Volker Lendecke Date: Wed, 27 May 2009 16:40:31 +0000 (+0200) Subject: TALLOC_ZERO_P->talloc_zero X-Git-Tag: tdb-1.1.5~391^2~5 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=01ea4249da246b0b99a4b89eb36aa6b1c0d46994 TALLOC_ZERO_P->talloc_zero --- diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 164e5853df6..b4e1bd436c1 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; }