diff options
author | Volker Lendecke <vl@samba.org> | 2012-11-29 15:02:15 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-29 18:27:36 +0100 |
commit | 0c0815cfe3cce09ef7dffa62235967e954915513 (patch) | |
tree | 28dac8423f60fd9a53554c7e188ad265d5d55f0d /lib | |
parent | 343ce16e0b52acd3d109eb619f60e394c1e04abb (diff) | |
download | samba-0c0815cfe3cce09ef7dffa62235967e954915513.tar.gz samba-0c0815cfe3cce09ef7dffa62235967e954915513.tar.xz samba-0c0815cfe3cce09ef7dffa62235967e954915513.zip |
dbwrap: Use talloc_zero in db_open_cache
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dbwrap/dbwrap_cache.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/dbwrap/dbwrap_cache.c b/lib/dbwrap/dbwrap_cache.c index f2a9c5fb0b..d97242ebdc 100644 --- a/lib/dbwrap/dbwrap_cache.c +++ b/lib/dbwrap/dbwrap_cache.c @@ -180,7 +180,7 @@ struct db_context *db_open_cache(TALLOC_CTX *mem_ctx, struct db_context *db; struct db_cache_ctx *ctx; - db = talloc(mem_ctx, struct db_context); + db = talloc_zero(mem_ctx, struct db_context); if (db == NULL) { return NULL; } @@ -199,7 +199,6 @@ struct db_context *db_open_cache(TALLOC_CTX *mem_ctx, } db->fetch_locked = dbwrap_cache_fetch_locked; - db->try_fetch_locked = NULL; db->traverse = dbwrap_cache_traverse; db->traverse_read = dbwrap_cache_traverse_read; db->get_seqnum = dbwrap_cache_get_seqnum; @@ -211,9 +210,5 @@ struct db_context *db_open_cache(TALLOC_CTX *mem_ctx, db->id = dbwrap_cache_id; db->name = dbwrap_name(ctx->backing); db->hash_size = dbwrap_hash_size(ctx->backing); - db->stored_callback = NULL; - db->wipe = NULL; - db->lock_order = 0; - db->persistent = false; return db; } |