Permalink
Browse files

fix Coverity IDs 746868, 700890 Uninitialized scalar/pointer field

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
Paul Harrison committed Jun 2, 2013
1 parent c5d482d commit 5f26b8a634014e6422256c498959c45cc9a14bb1
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythmetadata/videoscan.cpp
@@ -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;
@@ -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);
}

0 comments on commit 5f26b8a

Please sign in to comment.