From 0c9adb69858c7572320d18c0fd187dd6e885f17d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 13 Jan 2004 17:55:43 +0000 Subject: sync HEAD with recent changes in 3.0 (This used to be commit c98399e3c9d74e19b7c9d806ca8028b48866931e) --- source3/tdb/tdb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/tdb') diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index c98b0936ed..ff70750385 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -853,6 +853,8 @@ static tdb_off tdb_allocate(TDB_CONTEXT *tdb, tdb_len length, tdb_off rec_ptr, last_ptr, newrec_ptr; struct list_struct newrec; + memset(&newrec, '\0', sizeof(newrec)); + if (tdb_lock(tdb, -1, F_WRLCK) == -1) return 0; -- cgit