From: dirk Date: Tue, 14 Apr 2015 20:59:59 +0000 (+0000) Subject: Removed copy of name to key and just use the name in GetImageProfile. X-Git-Tag: 7.0.1-0~1105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32428f46301244067ee7c4864ea40b4beaa8fc78;p=imagemagick Removed copy of name to key and just use the name in GetImageProfile. --- diff --git a/MagickCore/profile.c b/MagickCore/profile.c index c2c082482..34935c4a1 100644 --- a/MagickCore/profile.c +++ b/MagickCore/profile.c @@ -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); }