]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 2 May 2015 22:18:19 +0000 (22:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 2 May 2015 22:18:19 +0000 (22:18 +0000)
MagickCore/blob.c

index 39ca1f8e37ed6c62b2658827f4b940fc2c4a562f..3abb8ba9859e116735952dd40a9ac46924b5d1ed 100644 (file)
@@ -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;