oops logic mixup

Kleis pointed out a suprious return in png load minimise.

see https://github.com/libvips/libvips/issues/1370#issuecomment-513706480
This commit is contained in:
John Cupitt 2019-07-23 12:06:35 +01:00
parent 7f3174c3e5
commit 28090d614f

View File

@ -203,9 +203,9 @@ read_minimise_cb( VipsImage *out, Read *read )
* file. * file.
*/ */
if( read->pPng ) { if( read->pPng ) {
if( setjmp( png_jmpbuf( read->pPng ) ) ) /* Catch and ignore error returns from png_read_end().
return; */
if( !setjmp( png_jmpbuf( read->pPng ) ) )
png_read_end( read->pPng, NULL ); png_read_end( read->pPng, NULL );
} }