]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/876
authorCristy <urban-warrior@imagemagick.org>
Mon, 27 Nov 2017 00:05:16 +0000 (19:05 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 27 Nov 2017 00:05:16 +0000 (19:05 -0500)
MagickCore/cache.c

index 8f5c84c784ed46c1a122ab97fc48877830355d72..177c12d3a9edee59d5bf0de63b2401435ebd2e4e 100644 (file)
@@ -3528,7 +3528,7 @@ static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode,
       ((cache_info->type == UndefinedCache) || (cache_info->type == MemoryCache)))
     {
       status=AcquireMagickResource(MemoryResource,cache_info->length);
-      if ((cache_info->type == UndefinedCache) && (status != MagickFalse))
+      if (status != MagickFalse)
         {
           status=MagickTrue;
           if (cache_anonymous_memory <= 0)