mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03: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:
parent
b5ec6ada9c
commit
15b947fb79
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user