From: cristy Date: Sat, 2 May 2015 22:18:19 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1072 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=872a46e14f7a35fa3ba29ebe5e244bf86d501023;p=imagemagick --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index 39ca1f8e3..3abb8ba98 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -125,7 +125,6 @@ struct _BlobInfo MagickBooleanType exempt, - immutable, synchronize, status, temporary; @@ -454,7 +453,6 @@ MagickExport BlobInfo *CloneBlobInfo(const BlobInfo *blob_info) clone_info->offset=blob_info->offset; clone_info->size=blob_info->size; clone_info->exempt=blob_info->exempt; - clone_info->immutable=blob_info->immutable; clone_info->status=blob_info->status; clone_info->temporary=blob_info->temporary; clone_info->type=blob_info->type; @@ -694,7 +692,6 @@ MagickExport void *DetachBlob(BlobInfo *blob_info) blob_info->offset=0; blob_info->eof=MagickFalse; blob_info->exempt=MagickFalse; - blob_info->immutable=MagickFalse; blob_info->type=UndefinedStream; blob_info->file_info.file=(FILE *) NULL; data=blob_info->data; @@ -2410,7 +2407,6 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info, { if (image_info->stream != (StreamHandler) NULL) image->blob->stream=(StreamHandler) image_info->stream; - image->blob->immutable=MagickTrue; AttachBlob(image->blob,image_info->blob,image_info->length); return(MagickTrue); } @@ -3771,12 +3767,8 @@ MagickExport MagickOffsetType SeekBlob(Image *image, image->blob->eof=MagickFalse; break; } - if ((image->blob->mapped != MagickFalse) && - (image->blob->immutable != MagickFalse)) - { - image->blob->eof=MagickTrue; - return(-1); - } + if (image->blob->mapped != MagickFalse) + return(-1); if (image->blob->offset < (MagickOffsetType) ((off_t) image->blob->extent)) break;