From: Cristy Date: Wed, 11 Jan 2017 16:38:39 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/351 X-Git-Tag: 7.0.4-4~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac36bf9a08f058a259c902f7325b5b544f700994;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/351 --- diff --git a/MagickCore/profile.c b/MagickCore/profile.c index 39d529e71..91cbf4fbe 100644 --- a/MagickCore/profile.c +++ b/MagickCore/profile.c @@ -1646,8 +1646,7 @@ static MagickBooleanType SetImageProfileInternal(Image *image,const char *name, ExceptionInfo *exception) { char - key[MagickPathExtent], - property[MagickPathExtent]; + key[MagickPathExtent]; MagickBooleanType status; @@ -1667,14 +1666,10 @@ static MagickBooleanType SetImageProfileInternal(Image *image,const char *name, { if (LocaleCompare(name,"8bim") == 0) GetProfilesFromResourceBlock(image,profile,exception); - else if (recursive == MagickFalse) - WriteTo8BimProfile(image,name,profile); + else + if (recursive == MagickFalse) + WriteTo8BimProfile(image,name,profile); } - /* - Inject profile into image properties. - */ - (void) FormatLocaleString(property,MagickPathExtent,"%s:*",name); - (void) GetImageProperty(image,property,exception); return(status); }