From 8af8a27fe1c87d30889626b53cd3ac752d4b7eea Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 20 Jan 2019 10:25:29 +0100 Subject: [PATCH] Added missing check. --- coders/jpeg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coders/jpeg.c b/coders/jpeg.c index 5647140e2..ec78c0b53 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -2151,8 +2151,9 @@ static void WriteProfile(j_compress_ptr jpeg_info,Image *image, xmp_profile=DestroyStringInfo(xmp_profile); } } - (void) LogMagickEvent(CoderEvent,GetMagickModule(), - "%s profile: %.20g bytes",name,(double) GetStringInfoLength(profile)); + if (image->debug != MagickFalse) + (void) LogMagickEvent(CoderEvent,GetMagickModule(), + "%s profile: %.20g bytes",name,(double) GetStringInfoLength(profile)); name=GetNextImageProfile(image); } custom_profile=DestroyStringInfo(custom_profile); -- 2.40.0