From 9a73dec3de870ad5d11fb30672cf98553446a093 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 27 Jan 2017 21:53:16 -0500 Subject: [PATCH] Fix CoderDecoderSeekableNonsense again. Fix Coverity "Dead code" issue. --- coders/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/png.c b/coders/png.c index 2ef45c546..5b5c1a55f 100644 --- a/coders/png.c +++ b/coders/png.c @@ -1975,7 +1975,7 @@ int exif_inf(png_structp png_ptr, unsigned char *source, /* clean up and return */ (void)inflateEnd(&strm); - return ret == Z_STREAM_END ? inflated_length : -1; + return (inflated_length); } #endif /* zxIf */ @@ -7946,7 +7946,7 @@ ModuleExport size_t RegisterPNGImage(void) #endif entry=AcquireMagickInfo("PNG","MNG","Multiple-image Network Graphics"); - entry->flags|=CoderSeekableStreamFlag; /* To do: eliminate this. */ + entry->flags|=CoderDecoderSeekableStreamFlag; /* To do: eliminate this. */ #if defined(MAGICKCORE_PNG_DELEGATE) entry->decoder=(DecodeImageHandler *) ReadMNGImage; -- 2.40.0