[libpng16] Fixed an intermittent SEGV in pngstest.

This commit is contained in:
John Bowler
2012-11-02 14:08:29 -05:00
committed by Glenn Randers-Pehrson
parent 7b3eefbcfd
commit 4314d63792
3 changed files with 14 additions and 30 deletions

View File

@@ -2625,7 +2625,7 @@ component_loc(png_byte loc[4], png_uint_32 format)
else
{
channels = 1;
loc[0] = loc[1] = loc[2] = 0;
loc[1] = loc[2] = loc[3] = 0;
}
if (format & PNG_FORMAT_FLAG_ALPHA)