From ba8fa4c1270df24b81884e102fc715b65f59d726 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 2 May 2017 08:40:32 +0200 Subject: [PATCH] Whitespace cleanup. --- coders/palm.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/coders/palm.c b/coders/palm.c index 1352bd16a..2905f4303 100644 --- a/coders/palm.c +++ b/coders/palm.c @@ -409,12 +409,13 @@ static Image *ReadPALMImage(const ImageInfo *image_info, if (one_row == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); lastrow=(unsigned char *) NULL; - if (compressionType == PALM_COMPRESSION_SCANLINE) { - lastrow=(unsigned char *) AcquireQuantumMemory(MagickMax(bytes_per_row, - 2*image->columns),sizeof(*lastrow)); - if (lastrow == (unsigned char *) NULL) - ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); - } + if (compressionType == PALM_COMPRESSION_SCANLINE) + { + lastrow=(unsigned char *) AcquireQuantumMemory(MagickMax(bytes_per_row, + 2*image->columns),sizeof(*lastrow)); + if (lastrow == (unsigned char *) NULL) + ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); + } mask=(size_t) (1U << bits_per_pixel)-1; for (y=0; y < (ssize_t) image->rows; y++) { -- 2.50.1