Avoid initializing the PNG row

It gets overwritten right after, and uncovers an error in the interlaced read
This commit is contained in:
ISSOtm authored and Eldred Habert committed 2022-07-02 17:04:17 +02:00
1 parent 75b9d48990
commit d569c6392c
1 file changed
+1 -1
+1 -1
View File
@@ -310,7 +310,7 @@ public:
size_t nbRowBytes = png_get_rowbytes(png, info);
assert(nbRowBytes != 0);
std::vector<png_byte> row(nbRowBytes);
DefaultInitVec<png_byte> row(nbRowBytes);
if (interlaceType == PNG_INTERLACE_NONE) {
for (png_uint_32 y = 0; y < height; ++y) {