Skip to content

Commit

Permalink
don't throw exception in SetImageInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 27, 2024
1 parent 8742d87 commit 5bd92ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion magick/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -2991,7 +2991,9 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
image=AcquireImage(image_info);
(void) CopyMagickString(image->filename,image_info->filename,
MaxTextExtent);
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
sans_exception=AcquireExceptionInfo();
status=OpenBlob(image_info,image,ReadBinaryBlobMode,sans_exception);
sans_exception=DestroyExceptionInfo(sans_exception);
if (status == MagickFalse)
{
image=DestroyImage(image);
Expand Down

0 comments on commit 5bd92ae

Please sign in to comment.