Skip to content

Commit

Permalink
fix Coverity IDs 746868, 700890 Uninitialized scalar/pointer field
Browse files Browse the repository at this point in the history
In VideoScanner::VideoScanner(): A scalar field is not initialized by the
constructor.

In VideoScannerThread::VideoScannerThread(): A pointer field is not
initialized in the constructor.
  • Loading branch information
Paul Harrison committed Jun 2, 2013
1 parent c5d482d commit 5f26b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythmetadata/videoscan.cpp
Expand Up @@ -75,7 +75,7 @@ class MythUIProgressDialog;

VideoScannerThread::VideoScannerThread(QObject *parent) :
MThread("VideoScanner"),
m_RemoveAll(false), m_KeepAll(false),
m_RemoveAll(false), m_KeepAll(false), m_dialog(NULL),
m_DBDataChanged(false)
{
m_parent = parent;
Expand Down Expand Up @@ -409,7 +409,7 @@ void VideoScannerThread::SendProgressEvent(uint progress, uint total,
QApplication::postEvent(m_dialog, pue);
}

VideoScanner::VideoScanner()
VideoScanner::VideoScanner() : m_cancel(false)
{
m_scanThread = new VideoScannerThread(this);
}
Expand Down

0 comments on commit 5f26b8a

Please sign in to comment.