From: cristy Date: Sun, 31 Jul 2011 01:37:39 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d450603bb65b609f1c496e65f9aea70eca6d46a1;p=imagemagick --- diff --git a/coders/miff.c b/coders/miff.c index 25d28ccaa..3239a0790 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -2440,8 +2440,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, bzip_info.avail_out=(unsigned int) BZipMaxExtent(packet_size* image->columns); code=BZ2_bzCompress(&bzip_info,BZ_FINISH); - if (code != BZ_OK) - status=MagickFalse; length=(size_t) (bzip_info.next_out-(char *) compress_pixels); if (length != 0) { @@ -2467,8 +2465,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, lzma_info.next_out=compress_pixels; lzma_info.avail_out=packet_size*image->columns; code=lzma_code(&lzma_info,LZMA_FINISH); - if (code != LZMA_OK) - status=MagickFalse; length=(size_t) (lzma_info.next_out-compress_pixels); if (length > 6) { @@ -2494,8 +2490,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, zip_info.avail_out=(uInt) ZipMaxExtent(packet_size* image->columns); code=deflate(&zip_info,Z_FINISH); - if (code != Z_OK) - status=MagickFalse; length=(size_t) (zip_info.next_out-compress_pixels); if (length > 6) {