TALLOC_ZERO_P->talloc_zero
authorVolker Lendecke <vl@samba.org>
Wed, 27 May 2009 16:40:31 +0000 (18:40 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 28 May 2009 08:52:04 +0000 (10:52 +0200)
source3/passdb/pdb_interface.c

index 164e5853df63f19d5063cee68b0a3993601d9b38..b4e1bd436c1ccae4e1abc7d852432c4fd82ad699 100644 (file)
@@ -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;
        }