[libpng16] Tidied up pngfix inits and fixed non-write pngtest.

This commit is contained in:
John Bowler
2013-12-01 15:07:09 -06:00
committed by Glenn Randers-Pehrson
parent 1f23775d10
commit 81dfd007b2
4 changed files with 11 additions and 19 deletions

View File

@@ -115,9 +115,6 @@ static int relaxed = 0;
static int unsupported_chunks = 0; /* chunk unsupported by libpng in input */
static int error_count = 0; /* count calls to png_error */
static int warning_count = 0; /* count calls to png_warning */
#ifdef PNG_WRITE_SUPPORTED
static int wrote_question = 0;
#endif
#ifdef __TURBOC__
#include <mem.h>
@@ -1585,6 +1582,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
{
for (;;)
{
static int wrote_question = 0;
png_size_t num_in, num_out;
char inbuf[256], outbuf[256];