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/log.c b/magick/log.c index dad845b..677fe21 100644 --- a/magick/log.c +++ b/magick/log.c
@@ -530,7 +530,8 @@ { if ((log_list == (LinkedListInfo *) NULL) && (instantiate_log == MagickFalse)) { - AcquireSemaphoreInfo(&log_semaphore); + if (log_semaphore == (SemaphoreInfo *) NULL) + AcquireSemaphoreInfo(&log_semaphore); LockSemaphoreInfo(log_semaphore); if ((log_list == (LinkedListInfo *) NULL) && (instantiate_log == MagickFalse))