]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 8 Mar 2014 17:22:45 +0000 (17:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 8 Mar 2014 17:22:45 +0000 (17:22 +0000)
12 files changed:
MagickCore/coder.c
MagickCore/color.c
MagickCore/configure.c
MagickCore/delegate.c
MagickCore/locale.c
MagickCore/log.c
MagickCore/magic.c
MagickCore/magick.c
MagickCore/mime.c
MagickCore/module.c
MagickCore/policy.c
MagickCore/type.c

index 282f43589484128eef236a5c1e561f05aad006b9..7eafc13e167981c8366485a11ac2ea6da2420de3 100644 (file)
@@ -539,13 +539,13 @@ MagickExport char **GetCoderList(const char *pattern,
 */
 static MagickBooleanType InitializeCoderList(ExceptionInfo *exception)
 {
-  if ((coder_list == (SplayTreeInfo *) NULL) &&
+  if ((coder_list == (SplayTreeInfo *) NULL) ||
       (instantiate_coder == MagickFalse))
     {
       if (coder_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&coder_semaphore);
       LockSemaphoreInfo(coder_semaphore);
-      if ((coder_list == (SplayTreeInfo *) NULL) &&
+      if ((coder_list == (SplayTreeInfo *) NULL) ||
           (instantiate_coder == MagickFalse))
         {
           (void) LoadCoderLists(MagickCoderFilename,exception);
index 359b6297f389fd094ebccf28bd269112dac6cab8..0c5f2c6acc697c2954caa77b3326281d2ff642e5 100644 (file)
@@ -1515,13 +1515,13 @@ MagickExport void GetColorTuple(const PixelInfo *pixel,
 */
 static MagickBooleanType InitializeColorList(ExceptionInfo *exception)
 {
-  if ((color_list == (LinkedListInfo *) NULL) &&
+  if ((color_list == (LinkedListInfo *) NULL) ||
       IfMagickFalse(instantiate_color))
     {
       if (color_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&color_semaphore);
       LockSemaphoreInfo(color_semaphore);
-      if ((color_list == (LinkedListInfo *) NULL) &&
+      if ((color_list == (LinkedListInfo *) NULL) ||
           IfMagickFalse(instantiate_color))
         {
           (void) LoadColorLists(ColorFilename,exception);
index 43ed3169b0e3e84064ef9b5e9aa598554cd83f6d..6e974965526f508bfe64a38fafe405737aaf6303 100644 (file)
@@ -902,13 +902,13 @@ MagickExport const char *GetConfigureValue(const ConfigureInfo *configure_info)
 */
 static MagickBooleanType InitializeConfigureList(ExceptionInfo *exception)
 {
-  if ((configure_list == (LinkedListInfo *) NULL) &&
+  if ((configure_list == (LinkedListInfo *) NULL) ||
       (instantiate_configure == MagickFalse))
     {
       if (configure_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&configure_semaphore);
       LockSemaphoreInfo(configure_semaphore);
-      if ((configure_list == (LinkedListInfo *) NULL) &&
+      if ((configure_list == (LinkedListInfo *) NULL) ||
           (instantiate_configure == MagickFalse))
         {
           (void) LoadConfigureLists(ConfigureFilename,exception);
index dc3d339e82cb82c1e41004955628cc75ad958fd7..890468be8810070db698067327cd56d182be6f57 100644 (file)
@@ -710,13 +710,13 @@ MagickExport MagickBooleanType GetDelegateThreadSupport(
 */
 static MagickBooleanType InitializeDelegateList(ExceptionInfo *exception)
 {
-  if ((delegate_list == (LinkedListInfo *) NULL) &&
+  if ((delegate_list == (LinkedListInfo *) NULL) ||
       IfMagickFalse(instantiate_delegate))
     {
       if (delegate_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&delegate_semaphore);
       LockSemaphoreInfo(delegate_semaphore);
-      if ((delegate_list == (LinkedListInfo *) NULL) &&
+      if ((delegate_list == (LinkedListInfo *) NULL) ||
           IfMagickFalse(instantiate_delegate))
         {
           (void) LoadDelegateLists(DelegateFilename,exception);
index faf3dd60195617d72344ef96fc319b82382d6257..de2934acbc9f9869e6c5337b0e78c39ec41327fb 100644 (file)
@@ -813,13 +813,13 @@ MagickExport const char *GetLocaleValue(const LocaleInfo *locale_info)
 */
 static MagickBooleanType InitializeLocaleList(ExceptionInfo *exception)
 {
-  if ((locale_list == (SplayTreeInfo *) NULL) &&
+  if ((locale_list == (SplayTreeInfo *) NULL) ||
       (instantiate_locale == MagickFalse))
     {
       if (locale_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&locale_semaphore);
       LockSemaphoreInfo(locale_semaphore);
-      if ((locale_list == (SplayTreeInfo *) NULL) &&
+      if ((locale_list == (SplayTreeInfo *) NULL) ||
           (instantiate_locale == MagickFalse))
         {
           char
index 81b689011aff7d0e300303fdc69489972923405a..467cafd669f85c2ff2d43da1ae09f60205f39816 100644 (file)
@@ -535,12 +535,13 @@ MagickExport const char *GetLogName(void)
 */
 static MagickBooleanType InitializeLogList(ExceptionInfo *exception)
 {
-  if ((log_list == (LinkedListInfo *) NULL) && (instantiate_log == MagickFalse))
+  if ((log_list == (LinkedListInfo *) NULL) ||
+      (instantiate_log == MagickFalse))
     {
       if (log_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&log_semaphore);
       LockSemaphoreInfo(log_semaphore);
-      if ((log_list == (LinkedListInfo *) NULL) &&
+      if ((log_list == (LinkedListInfo *) NULL) ||
           (instantiate_log == MagickFalse))
         {
           (void) LoadLogLists(LogFilename,exception);
index f44684adb9345643b2c35e1a32c494776a33a1bc..b050635930529decefc729e60e510262e1e7802b 100644 (file)
@@ -529,13 +529,13 @@ MagickExport const char *GetMagicName(const MagicInfo *magic_info)
 */
 static MagickBooleanType InitializeMagicList(ExceptionInfo *exception)
 {
-  if ((magic_list == (LinkedListInfo *) NULL) &&
+  if ((magic_list == (LinkedListInfo *) NULL) ||
       (instantiate_magic == MagickFalse))
     {
       if (magic_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&magic_semaphore);
       LockSemaphoreInfo(magic_semaphore);
-      if ((magic_list == (LinkedListInfo *) NULL) &&
+      if ((magic_list == (LinkedListInfo *) NULL) ||
           (instantiate_magic == MagickFalse))
         {
           (void) LoadMagicLists(MagicFilename,exception);
index d2f0ef4bea7a23b82f817c5489af4ca8df5cce00..11c79c23d6bfbed643acec31022d52c429f27f8c 100644 (file)
@@ -840,13 +840,13 @@ static void *DestroyMagickNode(void *magick_info)
 static MagickBooleanType InitializeMagickList(ExceptionInfo *exception)
 {
   (void) exception;
-  if ((magick_list == (SplayTreeInfo *) NULL) &&
+  if ((magick_list == (SplayTreeInfo *) NULL) ||
       (instantiate_magick == MagickFalse))
     {
       if (magick_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&magick_semaphore);
       LockSemaphoreInfo(magick_semaphore);
-      if ((magick_list == (SplayTreeInfo *) NULL) &&
+      if ((magick_list == (SplayTreeInfo *) NULL) ||
           (instantiate_magick == MagickFalse))
         {
           MagickBooleanType
index f7dcb23d1126ebfccd99a8086f948be2931e2f40..d29a467587352f92eb1e6f6ee97be84e4be1f6ce 100644 (file)
@@ -604,13 +604,13 @@ MagickExport const char *GetMimeType(const MimeInfo *mime_info)
 */
 static MagickBooleanType InitializeMimeList(ExceptionInfo *exception)
 {
-  if ((mime_list == (LinkedListInfo *) NULL) &&
+  if ((mime_list == (LinkedListInfo *) NULL) ||
       (instantiate_mime == MagickFalse))
     {
       if (mime_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&mime_semaphore);
       LockSemaphoreInfo(mime_semaphore);
-      if ((mime_list == (LinkedListInfo *) NULL) &&
+      if ((mime_list == (LinkedListInfo *) NULL) ||
           (instantiate_mime == MagickFalse))
         {
           (void) LoadMimeLists(MimeFilename,exception);
index a93488e0b736ec147bc0802ad7db1be533135303..bbad260337065b878aaaba1842a89398774bb4ec 100644 (file)
@@ -865,13 +865,13 @@ static void *DestroyModuleNode(void *module_info)
 static MagickBooleanType InitializeModuleList(
   ExceptionInfo *magick_unused(exception))
 {
-  if ((module_list == (SplayTreeInfo *) NULL) &&
+  if ((module_list == (SplayTreeInfo *) NULL) ||
       (instantiate_module == MagickFalse))
     {
       if (module_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&module_semaphore);
       LockSemaphoreInfo(module_semaphore);
-      if ((module_list == (SplayTreeInfo *) NULL) &&
+      if ((module_list == (SplayTreeInfo *) NULL) ||
           (instantiate_module == MagickFalse))
         {
           MagickBooleanType
index 19d09c4d5e42cc11e70a16f2b6a43885d26fd255..f4efc4b6e1ed9a4c5ce083f93de73112be92caa3 100644 (file)
@@ -425,13 +425,13 @@ MagickExport char *GetPolicyValue(const char *name)
 */
 static MagickBooleanType InitializePolicyList(ExceptionInfo *exception)
 {
-  if ((policy_list == (LinkedListInfo *) NULL) &&
+  if ((policy_list == (LinkedListInfo *) NULL) ||
       (instantiate_policy == MagickFalse))
     {
       if (policy_semaphore == (SemaphoreInfo *) NULL)
         ActivateSemaphoreInfo(&policy_semaphore);
       LockSemaphoreInfo(policy_semaphore);
-      if ((policy_list == (LinkedListInfo *) NULL) &&
+      if ((policy_list == (LinkedListInfo *) NULL) ||
           (instantiate_policy == MagickFalse))
         {
           (void) LoadPolicyLists(PolicyFilename,exception);
index c8ca03d186cb721e4c366346cc578a7db10e3a58..8b0881236501153c7879768a185d0392fd0397e4 100644 (file)
@@ -782,13 +782,13 @@ MagickExport MagickBooleanType LoadFontConfigFonts(SplayTreeInfo *type_list,
 
 static MagickBooleanType InitializeTypeList(ExceptionInfo *exception)
 {
-  if ((type_list == (SplayTreeInfo *) NULL) &&
+  if ((type_list == (SplayTreeInfo *) NULL) ||
       (instantiate_type == MagickFalse))
     {
       if (type_semaphore == (SemaphoreInfo *) NULL)
                    ActivateSemaphoreInfo(&type_semaphore);
       LockSemaphoreInfo(type_semaphore);
-      if ((type_list == (SplayTreeInfo *) NULL) &&
+      if ((type_list == (SplayTreeInfo *) NULL) ||
           (instantiate_type == MagickFalse))
         {
           (void) LoadTypeLists(MagickTypeFilename,exception);