summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-02-04 13:09:46 +0100
committerMichael Adam <obnox@samba.org>2013-02-04 17:14:22 +0100
commit394985454970e1eeb9b871bb359fa9f5edc9747b (patch)
treee0c59d64e5322f578629c64fc0ac4db87f52256a /source3/lib/dbwrap
parenta09f3a35519d5be2a7d37dc2a283f84f6eb4e8cc (diff)
downloadsamba-394985454970e1eeb9b871bb359fa9f5edc9747b.tar.gz
s3:dbwrap_ctdb: ZERO_STRUCT(rec) just to be sure in traverse_read_callback()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index ee800a89aad..3ad7c60987e 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1402,6 +1402,8 @@ static void traverse_read_callback(TDB_DATA key, TDB_DATA data, void *private_da
{
struct traverse_state *state = (struct traverse_state *)private_data;
struct db_record rec;
+
+ ZERO_STRUCT(rec);
rec.db = state->db;
rec.key = key;
rec.value = data;