]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 23 Apr 2018 15:07:59 +0000 (11:07 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 23 Apr 2018 15:08:16 +0000 (11:08 -0400)
MagickCore/blob.c

index 625727cb1d796afb2e308f1df20fe584d940ae77..e4bb76c8a6d0475698e76e86b85796c22ae1ccff 100644 (file)
@@ -3459,6 +3459,7 @@ MagickExport Image *PingBlob(const ImageInfo *image_info,const void *blob,
   ping_info=CloneImageInfo(image_info);
   ping_info->blob=(void *) blob;
   ping_info->length=length;
+  ping_info->ping=MagickTrue;
   if (*ping_info->magick == '\0')
     (void) SetImageInfo(ping_info,0,exception);
   magick_info=GetMagickInfo(ping_info->magick,exception);
@@ -3481,7 +3482,6 @@ MagickExport Image *PingBlob(const ImageInfo *image_info,const void *blob,
       (void) CopyMagickString(filename,ping_info->filename,MagickPathExtent);
       (void) FormatLocaleString(ping_info->filename,MagickPathExtent,"%s:%s",
         ping_info->magick,filename);
-      ping_info->ping=MagickTrue;
       image=ReadStream(ping_info,&PingStream,exception);
       if (image != (Image *) NULL)
         (void) DetachBlob(image->blob);
@@ -3504,7 +3504,6 @@ MagickExport Image *PingBlob(const ImageInfo *image_info,const void *blob,
   clone_info=CloneImageInfo(ping_info);
   (void) FormatLocaleString(clone_info->filename,MagickPathExtent,"%s:%s",
     ping_info->magick,ping_info->filename);
-  ping_info->ping=MagickTrue;
   image=ReadStream(clone_info,&PingStream,exception);
   if (image != (Image *) NULL)
     {