# HG changeset patch # User Chris Cannam # Date 1409740269 -3600 # Node ID db0759e4c6c3df00235cb5aed6b8bf8f7478f2fb # Parent 532302d0457188ecb4479c08e71a7dbea14a18fd Fix some (probably benign) uninitialised members (from coverity scan) diff -r 532302d04571 -r db0759e4c6c3 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Tue Sep 02 16:18:26 2014 +0100 +++ b/layer/Colour3DPlotLayer.cpp Wed Sep 03 11:31:09 2014 +0100 @@ -109,7 +109,7 @@ void Colour3DPlotLayer::cacheInvalid(int startFrame, int endFrame) { - if (!m_cache) return; + if (!m_cache || !m_model) return; int modelResolution = m_model->getResolution(); int start = startFrame / modelResolution; @@ -1529,7 +1529,9 @@ int sx0i = int(sx0 + epsilon); if (sx0i >= sw) break; - float a, b, value; + float a = float(sourceLine[sx0i]); + float b = a; + float value; float sx1 = sxa[x*2+1]; if (sx1 > sx0 + 1.f) {