From a9b81c8d5f2376f64fd1f9b5339a98b979df6cdd Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 15 Oct 2019 18:03:11 -0400 Subject: [PATCH] ... --- coders/wpg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/wpg.c b/coders/wpg.c index a733a2f29..b4922624f 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1337,7 +1337,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0)) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) - break; + goto Finish; AcquireNextImage(image_info,image,exception); image->depth=8; if (image->next == (Image *) NULL) @@ -1544,7 +1544,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0)) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) - break; + goto Finish; AcquireNextImage(image_info,image,exception); image->depth=8; if (image->next == (Image *) NULL) -- 2.40.0