# HG changeset patch # User Chris Cannam # Date 1409745973 -3600 # Node ID 048173126e711b4a618e0a2f616f05996f08369f # Parent 45e95de8b11d30ad931662d8bc7e6ccac14a6891 Fix some uninitialised values (from coverity scan) diff -r 45e95de8b11d -r 048173126e71 base/Clipboard.cpp --- a/base/Clipboard.cpp Wed Sep 03 11:27:23 2014 +0100 +++ b/base/Clipboard.cpp Wed Sep 03 13:06:13 2014 +0100 @@ -19,6 +19,7 @@ m_haveFrame(true), m_frame(frame), m_haveValue(false), + m_value(0), m_haveDuration(false), m_duration(0), m_haveLabel(true), diff -r 45e95de8b11d -r 048173126e71 data/fileio/MP3FileReader.cpp --- a/data/fileio/MP3FileReader.cpp Wed Sep 03 11:27:23 2014 +0100 +++ b/data/fileio/MP3FileReader.cpp Wed Sep 03 13:06:13 2014 +0100 @@ -63,6 +63,10 @@ m_fileSize = stat.st_size; + m_filebuffer = 0; + m_samplebuffer = 0; + m_samplebuffersize = 0; + int fd = -1; if ((fd = ::open(m_path.toLocal8Bit().data(), O_RDONLY #ifdef _WIN32 @@ -73,10 +77,6 @@ return; } - m_filebuffer = 0; - m_samplebuffer = 0; - m_samplebuffersize = 0; - try { m_filebuffer = new unsigned char[m_fileSize]; } catch (...) {