From: cristy Date: Tue, 31 Jan 2012 14:42:42 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6286 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43552adb4d6280768e4d67d4e4ad0523983b2a50;p=imagemagick --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index 0be29653a..80ee5b6d0 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -2488,8 +2488,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info, ((int) magick[2] == 0x08)) { (void) fclose(image->blob->file); - image->blob->file=(FILE *) gzopen(filename,type); - if (image->blob->file != (FILE *) NULL) + image->blob->gzfile=gzopen(filename,type); + if (image->blob->gzfile != (gzFile) NULL) image->blob->type=ZipStream; } #endif @@ -2497,8 +2497,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info, if (strncmp((char *) magick,"BZh",3) == 0) { (void) fclose(image->blob->file); - image->blob->file=(FILE *) BZ2_bzopen(filename,type); - if (image->blob->file != (FILE *) NULL) + image->blob->bzfile=BZ2_bzopen(filename,type); + if (image->blob->bzfile != (BZFILE *) NULL) image->blob->type=BZipStream; } #endif @@ -2557,8 +2557,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info, { if (mode == WriteBinaryBlobMode) type="wb"; - image->blob->file=(FILE *) gzopen(filename,type); - if (image->blob->file != (FILE *) NULL) + image->blob->gzfile=gzopen(filename,type); + if (image->blob->gzfile != (gzFile) NULL) image->blob->type=ZipStream; } else @@ -2566,8 +2566,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info, #if defined(MAGICKCORE_BZLIB_DELEGATE) if (LocaleCompare(extension,".bz2") == 0) { - image->blob->file=(FILE *) BZ2_bzopen(filename,type); - if (image->blob->file != (FILE *) NULL) + image->blob->bzfile=BZ2_bzopen(filename,type); + if (image->blob->bzfile != (BZFILE *) NULL) image->blob->type=BZipStream; } else