From a58299c3f51696bac0bef0ca0ff131054b78f46f Mon Sep 17 00:00:00 2001 From: glennrp Date: Sat, 28 Nov 2009 18:43:56 +0000 Subject: [PATCH] Changed the one remaining ping_info->trans to ping_info->trans_values in coders/png.c --- ChangeLog | 4 ++++ coders/png.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c547d99be..0fa531caf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-11-28 6.5.0-1 Glenn Randers-Pehrson + * Changed the one remaining ping_info->trans to ping_info->trans_values + in coders/png.c + 2009-11-26 6.5.8-1 Chris Madison * Eliminate bogus 'skip to sync byte' exception for PCD image format. * Add -define jpeg:extent option to restrict the maximum JPEG image file size. diff --git a/coders/png.c b/coders/png.c index 871c390ec..33a40ed62 100644 --- a/coders/png.c +++ b/coders/png.c @@ -6567,7 +6567,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, */ ping_info->trans_alpha=(unsigned char *) AcquireQuantumMemory( number_colors,sizeof(*ping_info->trans_alpha)); - if (ping_info->trans == (unsigned char *) NULL) + if (ping_info->trans_alpha == (unsigned char *) NULL) ThrowWriterException(ResourceLimitError, "MemoryAllocationFailed"); assert(number_colors <= 256); -- 2.40.0