]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 26 Apr 2014 21:08:53 +0000 (21:08 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 26 Apr 2014 21:08:53 +0000 (21:08 +0000)
MagickCore/blob.c

index e15587c2d964ae9269c17732d76fc75e9be665f0..23d14a06313bd840609ac4742913702fd3c2b989 100644 (file)
@@ -2543,6 +2543,7 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
                 ((int) magick[2] == 0x08))
               {
                 (void) fclose(image->blob->file_info.file);
+                image->blob_info->type=UndefinedStream;
                 image->blob->file_info.gzfile=gzopen(filename,type);
                 if (image->blob->file_info.gzfile != (gzFile) NULL)
                   image->blob->type=ZipStream;
@@ -2552,6 +2553,7 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
             if (strncmp((char *) magick,"BZh",3) == 0)
               {
                 (void) fclose(image->blob->file_info.file);
+                image->blob_info->type=UndefinedStream;
                 image->blob->file_info.bzfile=BZ2_bzopen(filename,type);
                 if (image->blob->file_info.bzfile != (BZFILE *) NULL)
                   image->blob->type=BZipStream;