diff options
author | Volker Lendecke <vl@samba.org> | 2009-05-27 18:40:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-05-28 10:52:04 +0200 |
commit | 01ea4249da246b0b99a4b89eb36aa6b1c0d46994 (patch) | |
tree | 1afaf04b06ca37d89c0bb6048f0951bab6bcfc3d | |
parent | d07464b21fe652e205f5eb2c74d12495bab100ce (diff) | |
download | samba-01ea4249da246b0b99a4b89eb36aa6b1c0d46994.tar.gz samba-01ea4249da246b0b99a4b89eb36aa6b1c0d46994.tar.bz2 samba-01ea4249da246b0b99a4b89eb36aa6b1c0d46994.zip |
TALLOC_ZERO_P->talloc_zero
-rw-r--r-- | source3/passdb/pdb_interface.c | 3 |
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; } |