diff --git a/MagickCore/compare.c b/MagickCore/compare.c index 4cfbea7429..580be66a4c 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -388,6 +388,7 @@ static MagickBooleanType GetAbsoluteDistortion(const Image *image, /* Compute the absolute difference in pixels between two images. */ + area=0; status=MagickTrue; SetImageDistortionBounds(image,reconstruct_image,&columns,&rows); image_view=AcquireVirtualCacheView(image,exception);