From 90b878c5834720811c795066d39e0ffbfd6b9b77 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Wed, 7 Oct 2009 12:44:35 -0500 Subject: [PATCH] [devel] Eliminated a shadowed declaration of "pp" in png_handle_sPLT(). --- ANNOUNCE | 5 +++-- CHANGES | 3 ++- pngrutil.c | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index bc43959fb..b57bcc4b0 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.4.0beta86 - October 2, 2009 +Libpng 1.4.0beta86 - October 7, 2009 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -574,8 +574,9 @@ version 1.4.0beta85 [October 1, 2009] Revised png_check_IHDR() again, to check info_ptr members instead of the contents of the returned parameters. -version 1.4.0beta86 [October 2, 2009] +version 1.4.0beta86 [October 7, 2009] Updated the "xcode" project (Alam Arias). + Eliminated a shadowed declaration of "pp" in png_handle_sPLT(). version 1.4.0betaN [future] Build shared libraries with -lz and sometimes -lm. diff --git a/CHANGES b/CHANGES index 24284f6ea..c81b5d1b5 100644 --- a/CHANGES +++ b/CHANGES @@ -2260,8 +2260,9 @@ version 1.4.0beta85 [October 1, 2009] Revised png_check_IHDR() again, to check info_ptr members instead of the contents of the returned parameters. -version 1.4.0beta86 [October 2, 2009] +version 1.4.0beta86 [October 7, 2009] Updated the "xcode" project (Alam Arias). + Eliminated a shadowed declaration of "pp" in png_handle_sPLT(). version 1.4.0betaN [future] Build shared libraries with -lz and sometimes -lm. diff --git a/pngrutil.c b/pngrutil.c index e403689dd..da0f17fdf 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1,7 +1,7 @@ /* pngrutil.c - utilities to read a PNG file * - * Last changed in libpng 1.4.0 [October 2, 2009] + * Last changed in libpng 1.4.0 [October 7, 2009] * Copyright (c) 1998-2009 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -212,7 +212,7 @@ png_decompress_chunk(png_structp png_ptr, int comp_type, png_size_t chunklength, png_size_t prefix_size, png_size_t *newlength) { - static PNG_CONST char msg[] = "Error decoding compressed text"; + static PNG_CONST char msg[] = "Error decoding compressed chunk"; png_charp text; png_size_t text_size; @@ -1111,7 +1111,7 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) { png_bytep entry_start; png_sPLT_t new_palette; -#ifndef PNG_POINTER_INDEXING_SUPPORTED +#ifdef PNG_POINTER_INDEXING_SUPPORTED png_sPLT_entryp pp; #endif int data_length, entry_size, i; @@ -1214,7 +1214,7 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) #ifdef PNG_POINTER_INDEXING_SUPPORTED for (i = 0; i < new_palette.nentries; i++) { - png_sPLT_entryp pp = new_palette.entries + i; + pp = new_palette.entries + i; if (new_palette.depth == 8) {