From: Dirk Lemstra Date: Tue, 2 May 2017 06:40:32 +0000 (+0200) Subject: Whitespace cleanup. X-Git-Tag: 7.0.5-6~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba8fa4c1270df24b81884e102fc715b65f59d726;p=imagemagick Whitespace cleanup. --- 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++) {