1
0
Mirror von https://git.tukaani.org/xz.git synchronisiert 2025-09-15 23:18:24 +00:00

Tests: test_lzip_decoder: Remove redundant initializations

(cherry picked from commit 38be573a279bd7b608ee7d8509ec10884e6fb0d5)
Dieser Commit ist enthalten in:
Lasse Collin 2024-04-19 20:51:36 +03:00
Ursprung f78081eb12
Commit 3117336a02

Datei anzeigen

@ -173,12 +173,10 @@ decode_expect_error(const char *src, lzma_ret expected_error)
strm.avail_in = file_size;
strm.next_in = data;
strm.avail_out = DECODE_CHUNK_SIZE;
strm.next_out = output_buffer;
lzma_ret ret = LZMA_OK;
while (ret == LZMA_OK) {
do {
// Discard output since we are only looking for errors
strm.next_out = output_buffer;
strm.avail_out = DECODE_CHUNK_SIZE;
@ -186,7 +184,7 @@ decode_expect_error(const char *src, lzma_ret expected_error)
ret = lzma_code(&strm, LZMA_FINISH);
else
ret = lzma_code(&strm, LZMA_RUN);
}
} while (ret == LZMA_OK);
assert_lzma_ret(ret, expected_error);
lzma_end(&strm);