]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/351
authorCristy <urban-warrior@imagemagick.org>
Wed, 11 Jan 2017 16:38:39 +0000 (11:38 -0500)
committerCristy <urban-warrior@imagemagick.org>
Wed, 11 Jan 2017 16:38:39 +0000 (11:38 -0500)
MagickCore/profile.c

index 39d529e7125afa6171fef431167335376e14cf70..91cbf4fbe93f14441df07a6b26feedc577092c91 100644 (file)
@@ -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);
 }