]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1224
authorCristy <urban-warrior@imagemagick.org>
Mon, 23 Jul 2018 18:37:48 +0000 (14:37 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 23 Jul 2018 18:37:48 +0000 (14:37 -0400)
MagickCore/log.c

index 57bc7ce37bb17ff060af9be7814ddf5653c7f1c6..8ca5c1af2b888c3c2f194306442e88f1a225bba3 100644 (file)
@@ -673,7 +673,8 @@ static inline void CheckEventLogging()
 
       ResetLinkedListIterator(log_cache);
       p=(LogInfo *) GetNextValueInLinkedList(log_cache);
-      event_logging=p->event_mask != NoEvents ? MagickTrue: MagickFalse;
+      event_logging=(p != (LogInfo *) NULL) && (p->event_mask != NoEvents) ?
+        MagickTrue: MagickFalse;
     }
 }