From: Volker Lendecke Date: Fri, 24 Apr 2020 06:59:16 +0000 (+0200) Subject: torture4: Move a variable declaration closer to its use X-Git-Tag: ldb-2.2.0~752 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0deaf90e579052bf36c3052f5efb7012bcb572c;p=thirdparty%2Fsamba.git torture4: Move a variable declaration closer to its use Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c index 0d48fc0c269..87dc6a2cd31 100644 --- a/source4/torture/rpc/eventlog.c +++ b/source4/torture/rpc/eventlog.c @@ -128,7 +128,6 @@ static bool test_ReadEventLog(struct torture_context *tctx, "ReadEventLog failed"); while (1) { - DATA_BLOB blob; struct EVENTLOGRECORD rec; enum ndr_err_code ndr_err; uint32_t size = 0; @@ -167,8 +166,8 @@ static bool test_ReadEventLog(struct torture_context *tctx, size = IVAL(r.out.data, pos); while (size > 0) { - - blob = data_blob_const(r.out.data + pos, size); + DATA_BLOB blob = data_blob_const( + r.out.data + pos, size); dump_data(0, blob.data, blob.length); ndr_err = ndr_pull_struct_blob_all(&blob, tctx, &rec,