From ac36bf9a08f058a259c902f7325b5b544f700994 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 11 Jan 2017 11:38:39 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/351 --- MagickCore/profile.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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); } -- 2.40.0