[libpng16] Removed a redundant test (suggested by "irwir" in Github issue #180).

This commit is contained in:
Glenn Randers-Pehrson
2017-09-20 15:53:38 -05:00
parent 5f0c9fabbc
commit 5efa483265
3 changed files with 3 additions and 3 deletions

View File

@@ -738,9 +738,7 @@ png_decompress_chunk(png_structrp png_ptr,
{
/* inflateReset failed, store the error message */
png_zstream_error(png_ptr, ret);
if (ret == Z_STREAM_END)
ret = PNG_UNEXPECTED_ZLIB_RETURN;
ret = PNG_UNEXPECTED_ZLIB_RETURN;
}
}