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:
Zbigniew Jędrzejewski-Szmek 2016-03-04 21:46:47 -05:00
parent b5ec6ada9c
commit 15b947fb79

View file

@ -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);