From dd5367ebe95434a6e01bd9be7487ed7768d3c139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Sat, 8 Jan 2011 22:04:32 +0100 Subject: [PATCH] ldb:ltdb_sequence_number - initialise "tmp_ctx" to prevent uninitialisation warning --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index 38724987a93..b0f9bf934b5 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -1071,7 +1071,7 @@ static int ltdb_sequence_number(struct ltdb_context *ctx, struct ldb_context *ldb; struct ldb_module *module = ctx->module; struct ldb_request *req = ctx->req; - TALLOC_CTX *tmp_ctx; + TALLOC_CTX *tmp_ctx = NULL; struct ldb_seqnum_request *seq; struct ldb_seqnum_result *res; struct ldb_message *msg = NULL; @@ -1098,6 +1098,7 @@ static int ltdb_sequence_number(struct ltdb_context *ctx, ret = LDB_ERR_OPERATIONS_ERROR; goto done; } + tmp_ctx = talloc_new(req); if (tmp_ctx == NULL) { ret = LDB_ERR_OPERATIONS_ERROR;