Browse files

MythZoneMinder: fix Coverity ID 1026739 Uninitialized pointer field

In ZMPlayer::ZMPlayer(): Several pointer fields are not initialized
in the constructor.
  • Loading branch information...
Paul Harrison
Paul Harrison committed Jun 3, 2013
1 parent 64cb8af commit 5aea0c9377412607a0c71e7c401f5fc26f31f2f6
Showing with 8 additions and 11 deletions.
  1. +8 −11 mythplugins/mythzoneminder/mythzoneminder/zmplayer.cpp
@@ -36,20 +36,17 @@ using namespace std;
ZMPlayer::ZMPlayer(MythScreenStack *parent, const char *name,
vector<Event *> *eventList, int *currentEvent)
:MythScreenType(parent, name)
:MythScreenType(parent, name),
m_frameImage(NULL), m_noEventsText(NULL), m_eventText(NULL),
m_cameraText(NULL), m_frameText(NULL), m_dateText(NULL),
m_playButton(NULL), m_deleteButton(NULL), m_nextButton(NULL),
m_prevButton(NULL), m_currentEvent(currentEvent),
m_eventList(eventList), m_frameList(new vector<Frame*>),
m_frameTimer(new QTimer(this)), m_curFrame(0), m_lastFrame(0),
m_paused(false), m_fullScreen(false), m_image(NULL)
m_eventList = eventList;
m_currentEvent = currentEvent;
m_frameList = new vector<Frame*>;
m_paused = false;
m_image = NULL;
m_frameTimer = new QTimer(this);
connect(m_frameTimer, SIGNAL(timeout()), this,
m_fullScreen = false;

0 comments on commit 5aea0c9

Please sign in to comment.