]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 8 Sep 2011 02:01:21 +0000 (02:01 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 8 Sep 2011 02:01:21 +0000 (02:01 +0000)
coders/png.c

index eaf68d613e59297d8d8f686e43e96a97101c84c5..3617563adbbb3701133820cf94e5fae52c15f97a 100644 (file)
@@ -2302,7 +2302,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
             (void) ThrowMagickException(&image->exception,GetMagickModule(),
               ResourceLimitError,"MemoryAllocationFailed","`%s'",
               "unable to copy profile");
-            return(MagickFalse);
+            return((Image *) NULL);
           }
           SetStringInfoDatum(profile,(const unsigned char *) info);
           (void) SetImageProfile(image,"icc",profile);