summaryrefslogtreecommitdiff
path: root/lib/tdb/tools/tdbtool.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-22 12:13:26 +0200
committerJeremy Allison <jra@samba.org>2013-07-22 15:06:32 -0700
commitf25449b00a81bdb4010aed36d7c713513b70bcce (patch)
tree0450aa263c811b29a15c1002bf866e6b1b3a4b49 /lib/tdb/tools/tdbtool.c
parentb5051111d2fd3a9ae3b3aa028ccf013a98c20b38 (diff)
downloadsamba-f25449b00a81bdb4010aed36d7c713513b70bcce.tar.gz
samba-f25449b00a81bdb4010aed36d7c713513b70bcce.tar.bz2
samba-f25449b00a81bdb4010aed36d7c713513b70bcce.zip
tdb: Fix CID 1034960 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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/tdb/tools/tdbtool.c')
-rw-r--r--lib/tdb/tools/tdbtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/tools/tdbtool.c b/lib/tdb/tools/tdbtool.c
index d00779611c..3f870d4668 100644
--- a/lib/tdb/tools/tdbtool.c
+++ b/lib/tdb/tools/tdbtool.c
@@ -235,7 +235,7 @@ static void create_tdb(const char *tdbname)
static void open_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);