commit | 4e1dff661dca8fc9ca6f524eaacb32c0eb5a9d78 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun Oct 25 20:36:03 2009 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun Oct 25 20:36:03 2009 +0000 |
tree | 104df45a20582eec2f6a5bb2a4dde46b587dafd3 | |
parent | 18b17443128598500357da7bff2f01683cf32890 [diff] [blame] |
diff --git a/magick/cache.c b/magick/cache.c index e7a3f5d..cbb7321 100644 --- a/magick/cache.c +++ b/magick/cache.c
@@ -203,7 +203,8 @@ if ((cache_resources == (SplayTreeInfo *) NULL) && (instantiate_cache == MagickFalse)) { - AcquireSemaphoreInfo(&cache_semaphore); + if (cache_semaphore == (SemaphoreInfo *) NULL) + AcquireSemaphoreInfo(&cache_semaphore); LockSemaphoreInfo(cache_semaphore); if ((cache_resources == (SplayTreeInfo *) NULL) && (instantiate_cache == MagickFalse))