diff --git a/magick/blob.c b/magick/blob.c index d6eae32a13..91e4415fce 100644 --- a/magick/blob.c +++ b/magick/blob.c @@ -1122,7 +1122,7 @@ MagickExport unsigned char *FileToBlob(const char *filename,const size_t extent, assert(filename != (const char *) NULL); assert(exception != (ExceptionInfo *) NULL); - assert(exception != (ExceptionInfo *) NULL); + assert(exception->signature == MagickCoreSignature); if (IsEventLogging() != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",filename); *length=0; @@ -1728,6 +1728,7 @@ MagickExport unsigned char *ImageToBlob(const ImageInfo *image_info, assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); assert(exception != (ExceptionInfo *) NULL); + assert(exception->signature == MagickCoreSignature); if (IsEventLogging() != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", image_info->filename);