diff data/model/WaveFileModel.cpp @ 971:9869ea3a93b7

Fix some (probably benign) uninitialised members (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:09:26 +0100
parents 6d2ece0fe356
children 36f79bc5c3d7
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Wed Sep 03 11:07:12 2014 +0100
+++ b/data/model/WaveFileModel.cpp	Wed Sep 03 11:09:26 2014 +0100
@@ -40,6 +40,7 @@
 WaveFileModel::WaveFileModel(FileSource source, int targetRate) :
     m_source(source),
     m_path(source.getLocation()),
+    m_reader(0),
     m_myReader(true),
     m_startFrame(0),
     m_fillThread(0),
@@ -67,6 +68,7 @@
 WaveFileModel::WaveFileModel(FileSource source, AudioFileReader *reader) :
     m_source(source),
     m_path(source.getLocation()),
+    m_reader(0),
     m_myReader(false),
     m_startFrame(0),
     m_fillThread(0),