]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture4: Move a variable declaration closer to its use
authorVolker Lendecke <vl@samba.org>
Fri, 24 Apr 2020 06:59:16 +0000 (08:59 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 May 2020 11:48:38 +0000 (11:48 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/rpc/eventlog.c

index 0d48fc0c269bd07cb9f81b3b4298c518b8aace8f..87dc6a2cd314e108d454d15e763ccff49ee390cb 100644 (file)
@@ -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,