From: cristy Date: Fri, 26 Dec 2014 16:43:30 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1545 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48eb687ea6562922e2b4545dc22dcadd7ff6d2ad;p=imagemagick --- diff --git a/MagickCore/image.c b/MagickCore/image.c index ddfe42159..a64d67940 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -2431,7 +2431,7 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info, } } *extension='\0'; - if (*image_info->magick != '\0') + if (*image_info->magick == '\0') GetPathComponent(image_info->filename,ExtensionPath,extension); #if defined(MAGICKCORE_ZLIB_DELEGATE) if (*extension != '\0')