]> granicus.if.org Git - imagemagick/commitdiff
Changed check for when the user_info can be used and reverted other fix.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 29 Jan 2017 17:51:52 +0000 (18:51 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 29 Jan 2017 17:51:52 +0000 (18:51 +0100)
MagickCore/blob.c
MagickCore/image.c

index 1221bc9508bfc25a96f4633079467f9f29c8e07c..4748771fa74cfc6b0f2586606a83573264a43369 100644 (file)
@@ -2719,7 +2719,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
       AttachBlob(image->blob,image_info->blob,image_info->length);
       return(MagickTrue);
     }
-  if (image_info->user_info != (UserBlobInfo *) NULL)
+  if ((image_info->user_info != (UserBlobInfo *) NULL) &&
+      (*image->filename == '\0'))
     {
       image->blob->type=UserStream;
       image->blob->user_info=image_info->user_info;
index 9292cc153128a096c0df92dcbe16d871a60c998d..48e940b6131e26ab2d75d0d05cc9531cfa892899 100644 (file)
@@ -2918,7 +2918,6 @@ MagickExport void SetImageInfoFile(ImageInfo *image_info,FILE *file)
   if (image_info->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
       image_info->filename);
-  image_info->user_info=(UserBlobInfo *) NULL;
   image_info->file=file;
 }
 \f