Commit 9b372d86 authored by Niels Möller's avatar Niels Möller
Browse files

* src/zlib.c (do_zlib): Don't print any message if Z_BUF_ERROR

happens with avail_in = 0.

Rev: src/zlib.c:1.31
parent 4918b053
......@@ -205,10 +205,13 @@ do_zlib(struct compress_instance *c,
switch (rc)
{
case Z_BUF_ERROR:
werror("do_zlib (%z): Z_BUF_ERROR (probably harmless),\n"
" avail_in = %i, avail_out = %i\n",
ZLIB_TYPE(&self->z)->operation,
self->z.avail_in, self->z.avail_out);
/* If avail_in is zero, this just means that all data have
* been flushed. */
if (self->z.avail_in)
werror("do_zlib (%z): Z_BUF_ERROR (probably harmless),\n"
" avail_in = %i, avail_out = %i\n",
ZLIB_TYPE(&self->z)->operation,
self->z.avail_in, self->z.avail_out);
/* Fall through */
case Z_OK:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment