[devel] Moved an improperly located if-test in png_read_row()

It had been put inside the png_debug2() statement.
This commit is contained in:
Glenn Randers-Pehrson 2009-08-22 08:45:09 -05:00
parent 3dfe93776f
commit 6d75d0c51f
3 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.4.0beta76 - August 21, 2009
Libpng 1.4.0beta76 - August 22, 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.
@ -534,7 +534,8 @@ version 1.4.0beta75 [August 21, 2009]
Removed an extra png_debug() recently added to png_write_find_filter().
Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
version 1.4.0beta76 [August 21, 2009]
version 1.4.0beta76 [August 22, 2009]
Moved an incorrectly located test in png_read_row() in pngread.c
version 1.4.0betaN [future]
Build shared libraries with -lz and sometimes -lm.

View File

@ -2211,7 +2211,8 @@ version 1.4.0beta75 [August 21, 2009]
Removed an extra png_debug() recently added to png_write_find_filter().
Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
version 1.4.0beta76 [August 21, 2009]
version 1.4.0beta76 [August 22, 2009]
Moved an incorrectly located test in png_read_row() in pngread.c
version 1.4.0betaN [future]
Build shared libraries with -lz and sometimes -lm.

View File

@ -1,7 +1,7 @@
/* pngread.c - read a PNG file
*
* Last changed in libpng 1.4.0 [August 21, 2009]
* Last changed in libpng 1.4.0 [August 22, 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.)
@ -455,12 +455,12 @@ png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
#endif
int ret;
png_debug2(1, "in png_read_row (row %lu, pass %d)",
if (png_ptr == NULL)
return;
png_debug2(1, "in png_read_row (row %lu, pass %d)",
(unsigned long) png_ptr->row_number, png_ptr->pass);
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
png_read_start_row(png_ptr);
if (png_ptr->row_number == 0 && png_ptr->pass == 0)