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

index 35a0add490c2ecbdf15e3c8434a9195cdea8f12b..a608b5997ff3ebb03506522d739484774698eafd 100644 (file)
@@ -205,7 +205,6 @@ MagickExport void AttachBlob(BlobInfo *blob_info,const void *blob,
   blob_info->file_info.file=(FILE *) NULL;
   blob_info->data=(unsigned char *) blob;
   blob_info->mapped=MagickFalse;
-  blob_info->immutable=MagickTrue;
 }
 \f
 /*
@@ -2411,6 +2410,7 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
     {
       if (image_info->stream != (StreamHandler) NULL)
         image->blob->stream=(StreamHandler) image_info->stream;
+      image_info->blob->immutable=MagickTrue;
       AttachBlob(image->blob,image_info->blob,image_info->length);
       return(MagickTrue);
     }