From d4ac92288333e62f26f1f9f7cc5cb359564834fb Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 11 Jun 2016 08:30:31 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/pull/219 --- MagickCore/cache.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index fdaedf361..e535b5a0d 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -1503,7 +1503,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone, status; static MagickSizeType - cache_timelimit = 0, + cache_timelimit = MagickResourceInfinity, cpu_throttle = MagickResourceInfinity, cycles = 0; @@ -1522,12 +1522,12 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone, } if ((cache_timelimit != MagickResourceInfinity) && ((MagickSizeType) (time((time_t *) NULL)-cache_epoch) >= cache_timelimit)) - { + { #if defined(ECANCELED) - errno=ECANCELED; + errno=ECANCELED; #endif - ThrowFatalException(ResourceLimitFatalError,"TimeLimitExceeded"); - } + ThrowFatalException(ResourceLimitFatalError,"TimeLimitExceeded"); + } LockSemaphoreInfo(image->semaphore); assert(image->cache != (Cache) NULL); cache_info=(CacheInfo *) image->cache; -- 2.40.0