Commit 4f73f6a6 authored by Rusty Russell's avatar Rusty Russell

tdb2: make valgrind happier.

parent 84a19b9b
......@@ -185,6 +185,9 @@ static int tdb_new_database(struct tdb_context *tdb)[bucket] = offsetof(struct new_database, h.frec); = newdb.h.frec.prev = 0;
/* Clear free space to keep valgrind happy, and avoid leaking stack. */
memset(, 0, sizeof(;
/* Tailer contains maximum number of free_zone bits. */
newdb.tailer = INITIAL_ZONE_BITS;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment