X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftdb.c;h=7544d7a1e13ef1bcea9d13ece2a4a8e01be7a3f0;hp=175827e248b8631263d1bba0ac107f670783af41;hb=9faf17435f1f5ce3c7046a738c45b60597838c03;hpb=6c69b9ba6b46ea0d15f90eb1649cbb2acf6a28de diff --git a/ccan/tdb2/tdb.c b/ccan/tdb2/tdb.c index 175827e2..7544d7a1 100644 --- a/ccan/tdb2/tdb.c +++ b/ccan/tdb2/tdb.c @@ -147,7 +147,7 @@ static int tdb_new_database(struct tdb_context *tdb) sizeof(newdb.hdr.hash_test), newdb.hdr.hash_seed, tdb->hash_priv); - + memset(newdb.hdr.reserved, 0, sizeof(newdb.hdr.reserved)); newdb.hdr.v.generation = 0; /* The initial zone must cover the initial database size! */