From: Cristy Date: Sun, 25 Aug 2019 13:45:49 +0000 (-0400) Subject: https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36581 X-Git-Tag: 7.0.8-63~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44831b3c5c8ca618e0c6d4130810ab0bb6aee960;p=imagemagick https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36581 --- diff --git a/coders/url.c b/coders/url.c index 332b5eb38..d5d9954ba 100644 --- a/coders/url.c +++ b/coders/url.c @@ -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)