From a6a0d238b368fd15ceb0237c2f9ff13c58b18fad Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 22 Jun 2013 12:13:26 +0200 Subject: [PATCH] tdb: Fix CID 1034959 Uninitialized scalar variable log_ctx.log_private was used uninitialized. Not a real bug here, as tdb_log does not access it, but tdb_open_ex still moves around uninitialized data. So this would show up in valgrind as well. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/tdb/tools/tdbtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tdb/tools/tdbtool.c b/lib/tdb/tools/tdbtool.c index 3f870d46680..01b9a14cc1f 100644 --- a/lib/tdb/tools/tdbtool.c +++ b/lib/tdb/tools/tdbtool.c @@ -222,7 +222,7 @@ static void terror(const char *why) static void create_tdb(const char *tdbname) { - struct tdb_logging_context log_ctx; + struct tdb_logging_context log_ctx = { NULL, NULL}; log_ctx.log_fn = tdb_log; if (tdb) tdb_close(tdb); -- 2.11.4.GIT