]> granicus.if.org Git - imagemagick/commitdiff
Whitespace cleanup.
authorDirk Lemstra <dirk@git.imagemagick.org>
Tue, 2 May 2017 06:40:32 +0000 (08:40 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Tue, 2 May 2017 06:40:32 +0000 (08:40 +0200)
coders/palm.c

index 1352bd16ae2b06017d375a4fd526b5a1314b2b44..2905f43031474cfa3fe056f0064041925d718713 100644 (file)
@@ -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++)
     {