]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 17 Sep 2013 12:41:18 +0000 (12:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 17 Sep 2013 12:41:18 +0000 (12:41 +0000)
coders/psd.c

index b58c3cc5f9498759cfcf87133b6ba44e3ffc2ab0..9ae9e3a4ac12f42ff2e393c052fc82edbe5ad187 100644 (file)
@@ -849,7 +849,9 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
       (psd_info.mode == DuotoneMode))
     {
       psd_info.color_channels=1;
-      if (AcquireImageColormap(image,psd_info.depth != 16 ? 256 : 65536,exception) == MagickFalse)
+      status=AcquireImageColormap(image,psd_info.depth != 16 ? 256 : 65536,
+        exception);
+      if (status == MagickFalse)
         ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
       image->alpha_trait=psd_info.channels >= 2 ? BlendPixelTrait : 
         UndefinedPixelTrait;