git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07464b
)
TALLOC_ZERO_P->talloc_zero
author
Volker Lendecke
<vl@samba.org>
Wed, 27 May 2009 16:40:31 +0000
(18:40 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 28 May 2009 08:52:04 +0000
(10:52 +0200)
source3/passdb/pdb_interface.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_interface.c
b/source3/passdb/pdb_interface.c
index 164e5853df63f19d5063cee68b0a3993601d9b38..b4e1bd436c1ccae4e1abc7d852432c4fd82ad699 100644
(file)
--- 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;
}