From: Cristy Date: Mon, 23 Jul 2018 18:37:48 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1224 X-Git-Tag: 7.0.8-8~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=107ce8577e818cf4801e5a59641cb769d645cc95;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1224 --- diff --git a/MagickCore/log.c b/MagickCore/log.c index 57bc7ce37..8ca5c1af2 100644 --- a/MagickCore/log.c +++ b/MagickCore/log.c @@ -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; } }