From a57abe51ca1c1390c1feec9f2cbd271e2c83975c Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 15 Sep 2018 16:12:22 +0200 Subject: [PATCH] Corrected patch. --- coders/jpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/jpeg.c b/coders/jpeg.c index d046c6a46..020ffaac6 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -2377,9 +2377,9 @@ static MagickBooleanType WriteJPEGImage(const ImageInfo *image_info, } #if defined(C_ARITH_CODING_SUPPORTED) option=GetImageOption(image_info,"jpeg:arithmetic-coding"); - if (option != (const char *) NULL) + if (IsStringTrue(option) != MagickFalse) { - jpeg_info.arith_code=IsStringTrue(option) != MagickFalse ? TRUE : FALSE; + jpeg_info.arith_code=TRUE; jpeg_info.optimize_coding=FALSE; // Not supported. } #endif -- 2.40.0