[legacy] Imported from libpng-1.2.44rc02.tar

This commit is contained in:
Glenn Randers-Pehrson
2010-06-23 09:22:12 -05:00
parent 009516860a
commit 47c6e47d1f
55 changed files with 209 additions and 184 deletions

View File

@@ -1,7 +1,7 @@
/* pngpread.c - read a png file in push mode
*
* Last changed in libpng 1.2.44 [June 21, 2010]
* Last changed in libpng 1.2.44 [June 23, 2010]
* Copyright (c) 1998-2010 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.)
@@ -833,7 +833,7 @@ png_process_IDAT_data(png_structp png_ptr, png_bytep buffer,
png_size_t buffer_length)
{
/* The caller checks for a non-zero buffer length. */
if (!(buffer_length > 0) || buffer == 0)
if (!(buffer_length > 0) || buffer == NULL)
png_error(png_ptr, "No IDAT data (internal error)");
/* This routine must process all the data it has been given