]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 8 Dec 2018 20:13:37 +0000 (15:13 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 8 Dec 2018 20:13:37 +0000 (15:13 -0500)
MagickCore/image.c

index 1d084c29911ad174a891b1b2312e9e453bd60c99..527426804088a24e5738cbfe4521f5eee9ecfb64 100644 (file)
@@ -2883,9 +2883,8 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
     {
       (void) CopyMagickString(magic,image_info->magick,MagickPathExtent);
       magick_info=GetMagickInfo(magic,sans_exception);
-      GetPathComponent(image_info->filename,CanonicalPath,component);
       if (frames == 0)
-        GetPathComponent(image_info->filename,CanonicalPath,filename);
+        GetPathComponent(image_info->filename,CanonicalPath,component);
       else
         GetPathComponent(image_info->filename,SubcanonicalPath,component);
       (void) CopyMagickString(image_info->filename,component,MagickPathExtent);