From e900a2b21c8bd5b4b10a9c07b3c65ab31f69bbb8 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 2 Jun 2015 19:24:04 -0400 Subject: [PATCH] Fix uninitialized variable --- src/Envelope.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Envelope.cpp b/src/Envelope.cpp index 44f72ac0d..6504be230 100644 --- a/src/Envelope.cpp +++ b/src/Envelope.cpp @@ -331,7 +331,7 @@ void Envelope::WriteXML(XMLWriter &xmlFile) float Envelope::ValueOfPixel( int y, int height, bool upper, bool dB, float zoomMin, float zoomMax) { - double dBRange; + double dBRange = 0; if (dB) // TODO: Cache the gPrefs value. Reading it every time is inefficient. dBRange = gPrefs->Read(wxT("/GUI/EnvdBRange"), ENV_DB_RANGE);