ldb:ltdb_sequence_number - initialise "tmp_ctx" to prevent uninitialisation warning
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 8 Jan 2011 21:04:32 +0000 (22:04 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 12 Jan 2011 18:52:19 +0000 (19:52 +0100)
source4/lib/ldb/ldb_tdb/ldb_tdb.c

index 38724987a93380fdb477189a822fb13927e87b68..b0f9bf934b5febec25267d805951cefaf684d3f1 100644 (file)
@@ -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;