]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/log.c
The 8bim profile will be updated when the iptc profile is changed.
[imagemagick] / MagickCore / log.c
index 389bfb645f123c5092da1697ffbd1797dc443951..8c6d859c22236059dd8d631d568e51886feff460 100644 (file)
@@ -743,6 +743,8 @@ MagickExport MagickBooleanType ListLogInfo(FILE *file,ExceptionInfo *exception)
           size_t
             mask;
 
+          if (LogHandlers[j].name == (const char *) NULL)
+            break;
           mask=1;
           mask<<=j;
           if ((log_info[i]->handler_mask & mask) != 0)
@@ -750,8 +752,6 @@ MagickExport MagickBooleanType ListLogInfo(FILE *file,ExceptionInfo *exception)
               (void) FormatLocaleFile(file,"%s ",LogHandlers[j].name);
               length+=strlen(LogHandlers[j].name);
             }
-          if (LogHandlers[j].name == (const char *) NULL)
-            break;
         }
         for (j=(ssize_t) length; j <= 12; j++)
           (void) FormatLocaleFile(file," ");