cleanup: use Z_NO_FLUSH instead of 0 for inflate()

This commit is contained in:
Randy 2022-06-01 23:49:48 +02:00
parent 3c640a075d
commit a4b209fa2c

View File

@ -1277,7 +1277,7 @@ static int spng__inflate_stream(spng_ctx *ctx, char **out, size_t *len, size_t e
while(ret != Z_STREAM_END)
{
ret = inflate(stream, 0);
ret = inflate(stream, Z_NO_FLUSH);
if(ret == Z_STREAM_END) break;