]> granicus.if.org Git - imagemagick/commitdiff
Fixed replacing of variable name.
authordirk <dirk@git.imagemagick.org>
Tue, 19 Jul 2016 20:17:40 +0000 (22:17 +0200)
committerdirk <dirk@git.imagemagick.org>
Tue, 19 Jul 2016 20:17:40 +0000 (22:17 +0200)
MagickCore/locale.c

index 9ee5ae7c656bd0c1a60157c620c52fad318c495b..e9c4b50284858c8aa6af894c92b5602a54ebd013 100644 (file)
@@ -193,7 +193,7 @@ static SplayTreeInfo *AcquireLocaleSplayTree(const char *filename,
 
   cache=NewSplayTree(CompareSplayTreeString,(void *(*)(void *)) NULL,
     DestroyLocaleNode);
-  if (locale_cache == (SplayTreeInfo *) NULL)
+  if (cache == (SplayTreeInfo *) NULL)
     ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
   status=MagickTrue;
 #if !defined(MAGICKCORE_ZERO_CONFIGURATION_SUPPORT)