mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ldb:ltdb_sequence_number - initialise "tmp_ctx" to prevent uninitialisation warning
This commit is contained in:
parent
ee4fd13ea3
commit
dd5367ebe9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user