]> granicus.if.org Git - imagemagick/commitdiff
Fixed check for when the custom_stream was changed into a file.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sat, 6 Jan 2018 12:34:19 +0000 (13:34 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sat, 6 Jan 2018 12:34:47 +0000 (13:34 +0100)
MagickCore/blob.c

index 372f47f0ec0301af16ddd62c7c0eca5c5652d265..3fafc5998a460b6a172c1b3b4b7fdd0e72417c32 100644 (file)
@@ -766,7 +766,7 @@ MagickExport Image *CustomStreamToImage(const ImageInfo *image_info,
     }
   image=(Image *) NULL;
   if ((GetMagickBlobSupport(magick_info) != MagickFalse) ||
-      (blob_info->custom_stream == (CustomStreamInfo *) NULL))
+      (*blob_info->filename != '\0'))
     {
       char
         filename[MagickPathExtent];