]> granicus.if.org Git - imagemagick/commitdiff
Removed copy of name to key and just use the name in GetImageProfile.
authordirk <dirk@git.imagemagick.org>
Tue, 14 Apr 2015 20:59:59 +0000 (20:59 +0000)
committerdirk <dirk@git.imagemagick.org>
Tue, 14 Apr 2015 20:59:59 +0000 (20:59 +0000)
MagickCore/profile.c

index c2c082482cb7b60025fdb956179247e508495851..34935c4a10d108f90e0136510ec6995bab9c531e 100644 (file)
@@ -274,9 +274,6 @@ MagickExport void DestroyImageProfiles(Image *image)
 MagickExport const StringInfo *GetImageProfile(const Image *image,
   const char *name)
 {
-  char
-    key[MaxTextExtent];
-
   const StringInfo
     *profile;
 
@@ -286,9 +283,8 @@ MagickExport const StringInfo *GetImageProfile(const Image *image,
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (image->profiles == (SplayTreeInfo *) NULL)
     return((StringInfo *) NULL);
-  (void) CopyMagickString(key,name,MaxTextExtent);
   profile=(const StringInfo *) GetValueFromSplayTree((SplayTreeInfo *)
-    image->profiles,key);
+    image->profiles,name);
   return(profile);
 }
 \f