From: cristy Date: Sun, 12 Dec 2010 20:33:53 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8395 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a134d337460443216515a5d96554364b92ed0687;p=imagemagick --- diff --git a/coders/url.c b/coders/url.c index 2962b1d06..2fb9732bf 100644 --- a/coders/url.c +++ b/coders/url.c @@ -51,11 +51,12 @@ #include "magick/list.h" #include "magick/magick.h" #include "magick/memory_.h" +#include "magick/module.h" #include "magick/quantum-private.h" #include "magick/static.h" #include "magick/resource_.h" #include "magick/string_.h" -#include "magick/module.h" +#include "magick/utility.h" #if defined(MAGICKCORE_XML_DELEGATE) # if defined(MAGICKCORE_WINDOWS_SUPPORT) # if defined(__MINGW32__) @@ -222,7 +223,9 @@ static Image *ReadURLImage(const ImageInfo *image_info,ExceptionInfo *exception) if (unique_file != -1) (void) RelinquishUniqueFileResource(read_info->filename); read_info=DestroyImageInfo(read_info); - if (image == (Image *) NULL) + if (image != (Image *) NULL) + GetPathComponent(image_info->filename,TailPath,image->filename); + else (void) ThrowMagickException(exception,GetMagickModule(),CoderError, "NoDataReturned","`%s'",filename); return(GetFirstImageInList(image));