]> granicus.if.org Git - imagemagick/commitdiff
https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36581
authorCristy <urban-warrior@imagemagick.org>
Sun, 25 Aug 2019 13:45:49 +0000 (09:45 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 25 Aug 2019 13:45:49 +0000 (09:45 -0400)
coders/url.c

index 332b5eb383ec8e209498410e839c273996625d49..d5d9954badbebc1c7ac0df087aa4a2e562f331cf 100644 (file)
@@ -171,17 +171,10 @@ static Image *ReadURLImage(const ImageInfo *image_info,ExceptionInfo *exception)
           *read_info->magick='\0';
           images=ReadImage(read_info,exception);
           (void) RelinquishUniqueFileResource(read_info->filename);
-          (void) CopyMagickString(read_info->filename,image->filename,
-            MagickPathExtent);
-          (void) SetImageInfo(read_info,1,exception);
           if (images != (Image *) NULL)
             for (next=images; next != (Image *) NULL; next=next->next)
-            {
               (void) CopyMagickString(next->filename,image->filename,
                 MagickPathExtent);
-              (void) CopyMagickString(next->magick,read_info->magick,
-                MagickPathExtent);
-            }
         }
       read_info=DestroyImageInfo(read_info);
       image=DestroyImage(image);
@@ -279,14 +272,9 @@ static Image *ReadURLImage(const ImageInfo *image_info,ExceptionInfo *exception)
   *read_info->magick='\0';
   images=ReadImage(read_info,exception);
   (void) RelinquishUniqueFileResource(read_info->filename);
-  (void) CopyMagickString(read_info->filename,image->filename,MagickPathExtent);
-  (void) SetImageInfo(read_info,1,exception);
   if (images != (Image *) NULL)
     for (next=images; next != (Image *) NULL; next=next->next)
-    {
       (void) CopyMagickString(next->filename,image->filename,MagickPathExtent);
-      (void) CopyMagickString(next->magick,read_info->magick,MagickPathExtent);
-    }
   read_info=DestroyImageInfo(read_info);
   image=DestroyImage(image);
   if (images != (Image *) NULL)