From: cristy Date: Mon, 21 Nov 2011 18:18:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6618 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f228edefd3d7848d18115765ef01ce63cb4f7395;p=imagemagick --- diff --git a/MagickCore/thread-private.h b/MagickCore/thread-private.h index 6b726c215..497f13fba 100644 --- a/MagickCore/thread-private.h +++ b/MagickCore/thread-private.h @@ -124,7 +124,7 @@ static inline int GetOpenMPThreadId(void) static inline void SetOpenMPMaximumThreads(const int threads) { #if defined(MAGICKCORE_OPENMP_SUPPORT) && (_OPENMP >= 200203) - omp_set_num_threads(threads); + omp_set_num_threads(threads < 1 ? 1 : threads); #else (void) threads; #endif