mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
torture4: Move a variable declaration closer to its use
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
committed by
Ralph Boehme
parent
b3dec1bc1f
commit
d0deaf90e5
@ -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,
|
||||
|
Reference in New Issue
Block a user