mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test-compress-benchmark: skip loop iteration if size is 0
Otherwise we would hit an assert in the compression code.
This commit is contained in:
@@ -105,6 +105,8 @@ static void test_compress_decompress(const char* label, const char* type,
|
||||
int r;
|
||||
|
||||
size = permute(i);
|
||||
if (size == 0)
|
||||
continue;
|
||||
|
||||
log_debug("%s %zu %zu", type, i, size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user