From dd2630941258557ec3c151345b01a9fc1939f0a3 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 13 Feb 2024 21:33:32 +0100 Subject: [PATCH] Minor code cleanup. --- coders/tiff.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 54221a548..bbab68f19 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3592,14 +3592,12 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RAW); if (IssRGBCompatibleColorspace(image->colorspace) != MagickFalse) { - const char - *value; - (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RGB); if (IsYCbCrCompatibleColorspace(image->colorspace) != MagickFalse) { const char - *sampling_factor; + *sampling_factor, + *value; GeometryInfo geometry_info;