CppCheck : Add missing initialization of pointer

This commit is contained in:
Magne Sjaastad 2017-09-07 20:55:02 +02:00
parent 6c3a0d91b4
commit 908545c669

View File

@ -155,7 +155,7 @@ void RivNNCGeometryGenerator::textureCoordinates(cvf::Vec2fArray* textureCoords,
textureCoords->resize(numVertices);
cvf::Vec2f* rawPtr = textureCoords->ptr();
const std::vector<double>* nncResultVals;
const std::vector<double>* nncResultVals = nullptr;
if (resultType == RiaDefines::STATIC_NATIVE)
{
nncResultVals = m_nncData->staticConnectionScalarResult(scalarResultIndex);