From: dirk Date: Tue, 16 Dec 2014 12:17:15 +0000 (+0000) Subject: Thread limit should be at least 1. X-Git-Tag: 7.0.1-0~1624 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5acc6f5104686011400cb7921f05163ca11016a2;p=imagemagick Thread limit should be at least 1. --- diff --git a/MagickCore/resource.c b/MagickCore/resource.c index 139da2bef..e383d30e2 100644 --- a/MagickCore/resource.c +++ b/MagickCore/resource.c @@ -1181,6 +1181,8 @@ MagickExport MagickBooleanType SetMagickResourceLimit(const ResourceType type, 100.0)); if (resource_info.thread_limit > GetOpenMPMaximumThreads()) resource_info.thread_limit=GetOpenMPMaximumThreads(); + else if (resource_info.thread_limit == 0) + resource_info.thread_limit=1; break; } case ThrottleResource: