Mesh: [skip ci] fixes #6598: read unitialized variables

This commit is contained in:
wmayer
2022-03-21 01:27:07 +01:00
parent d5604e0e89
commit 4354e41018

View File

@@ -193,7 +193,7 @@ SbBool SoSFMeshFacetArray::read1Value(SoInput * in, unsigned long idx)
{
assert(idx < value->size());
MeshCore::MeshFacet& v = (*value)[idx];
int32_t p0, p1, p2;
int32_t p0{}, p1{}, p2{};
SbBool ret = (in->read(p0) && in->read(p1) && in->read(p2));
if ( ret ) {
v._aulPoints[0] = p0;