From 44db02364ec63f491ae6b3a70f4495b7f200f708 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 25 Nov 2013 13:19:57 -0600 Subject: [PATCH] [libpng16] Avoid a clang scan-build warning in pngtest.c --- pngtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngtest.c b/pngtest.c index c099db131..857f199fc 100644 --- a/pngtest.c +++ b/pngtest.c @@ -115,6 +115,7 @@ 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 */ +static int wrote_question = 0; #ifdef __TURBOC__ #include @@ -1578,7 +1579,6 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname) #ifdef PNG_WRITE_SUPPORTED /* else nothing was written */ { - int wrote_question = 0; for (;;) {