diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-01-08 22:04:32 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-01-12 19:52:19 +0100 |
commit | dd5367ebe95434a6e01bd9be7487ed7768d3c139 (patch) | |
tree | 08ddf015c7ba74ed3b4ef791a7b10c4b655abb29 /source4 | |
parent | ee4fd13ea368e7d235e709959e5fda38ee27d0e6 (diff) | |
download | samba-dd5367ebe95434a6e01bd9be7487ed7768d3c139.tar.gz samba-dd5367ebe95434a6e01bd9be7487ed7768d3c139.tar.bz2 samba-dd5367ebe95434a6e01bd9be7487ed7768d3c139.zip |
ldb:ltdb_sequence_number - initialise "tmp_ctx" to prevent uninitialisation warning
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index 38724987a9..b0f9bf934b 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; |