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

index c2a1b90287c0e746e81d574d710764cf920b9822..35a0add490c2ecbdf15e3c8434a9195cdea8f12b 100644 (file)
@@ -205,6 +205,7 @@ 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
 /*
@@ -2410,7 +2411,6 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
     {
       if (image_info->stream != (StreamHandler) NULL)
         image->blob->stream=(StreamHandler) image_info->stream;
-      image->immutable=MagickTrue;
       AttachBlob(image->blob,image_info->blob,image_info->length);
       return(MagickTrue);
     }