From: cristy Date: Wed, 19 Mar 2014 13:52:13 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=571ce680417589aeb7835c874d030ea8b65e41ed;p=imagemagick --- diff --git a/MagickCore/delegate.c b/MagickCore/delegate.c index eda0971d3..302cdef0c 100644 --- a/MagickCore/delegate.c +++ b/MagickCore/delegate.c @@ -1382,6 +1382,7 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); (void) ResetMagickMemory(delegate_info,0,sizeof(*delegate_info)); delegate_info->path=ConstantString(filename); + delegate_info->thread_support=MagickTrue; delegate_info->signature=MagickSignature; continue; } @@ -1389,8 +1390,6 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, continue; if (LocaleCompare(keyword,"/>") == 0) { - if (delegate_info->thread_support == MagickFalse) - delegate_info->semaphore=AcquireSemaphoreInfo(); status=AppendValueToLinkedList(delegate_cache,delegate_info); if( IfMagickFalse(status) ) (void) ThrowMagickException(exception,GetMagickModule(), @@ -1494,6 +1493,8 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, if (LocaleCompare((char *) keyword,"thread-support") == 0) { delegate_info->thread_support=IsStringTrue(token); + if (delegate_info->thread_support == MagickFalse) + delegate_info->semaphore=AcquireSemaphoreInfo(); break; } break;