summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-29 15:02:43 +0100
committerMichael Adam <obnox@samba.org>2012-11-29 18:27:37 +0100
commita02251333fc185aee176b565a85fd42e9ff4cfbc (patch)
tree559e2154c362d25953c978178c8abf002ce74b48
parent0c0815cfe3cce09ef7dffa62235967e954915513 (diff)
downloadsamba-a02251333fc185aee176b565a85fd42e9ff4cfbc.tar.gz
samba-a02251333fc185aee176b565a85fd42e9ff4cfbc.tar.bz2
samba-a02251333fc185aee176b565a85fd42e9ff4cfbc.zip
dbwrap: Use talloc_zero in db_open_rbt
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--lib/dbwrap/dbwrap_rbt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/dbwrap/dbwrap_rbt.c b/lib/dbwrap/dbwrap_rbt.c
index afe9974cb5..3f97086598 100644
--- a/lib/dbwrap/dbwrap_rbt.c
+++ b/lib/dbwrap/dbwrap_rbt.c
@@ -480,7 +480,7 @@ struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx)
{
struct db_context *result;
- result = talloc(mem_ctx, struct db_context);
+ result = talloc_zero(mem_ctx, struct db_context);
if (result == NULL) {
return NULL;
@@ -494,7 +494,6 @@ struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx)
}
result->fetch_locked = db_rbt_fetch_locked;
- result->try_fetch_locked = NULL;
result->traverse = db_rbt_traverse;
result->traverse_read = db_rbt_traverse_read;
result->get_seqnum = db_rbt_get_seqnum;
@@ -504,11 +503,8 @@ struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx)
result->exists = db_rbt_exists;
result->wipe = db_rbt_wipe;
result->parse_record = db_rbt_parse_record;
- result->lock_order = 0;
result->id = db_rbt_id;
result->name = "dbwrap rbt";
- result->hash_size = 0;
- result->stored_callback = NULL;
return result;
}