Skip to content

Commit

Permalink
ViewScheduled: fix coverity ID 746886 Uninitialized pointer field
Browse files Browse the repository at this point in the history
In ViewScheduled::ViewScheduled(): Several fields are not initialized in the
constructor.
  • Loading branch information
Paul Harrison committed Jun 12, 2013
1 parent acfb66c commit 7b1a099
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions mythtv/programs/mythfrontend/viewscheduled.cpp
Expand Up @@ -32,24 +32,25 @@ void *ViewScheduled::RunViewScheduled(void *player, bool showTV)
}

ViewScheduled::ViewScheduled(MythScreenStack *parent, TV* player, bool showTV)
: ScheduleCommon(parent, "ViewScheduled")
: ScheduleCommon(parent, "ViewScheduled"),
m_conflictBool(false),
m_conflictDate(QDate()),
m_schedulesList(NULL),
m_groupList(NULL),
m_showAll(!gCoreContext->GetNumSetting("ViewSchedShowLevel", 0)),
m_inEvent(false),
m_inFill(false),
m_needFill(false),
m_listPos(0),
m_currentGroup(QDate()),
m_defaultGroup(QDate()),
m_maxcard(0),
m_curcard(0),
m_inputref(),
m_maxinput(0),
m_curinput(0),
m_player(player)
{
m_showAll = !gCoreContext->GetNumSetting("ViewSchedShowLevel", 0);

m_player = player;

m_inEvent = false;
m_inFill = false;
m_needFill = false;

m_curcard = 0;
m_maxcard = 0;
m_curinput = 0;
m_maxinput = 0;

m_defaultGroup = QDate();
m_currentGroup = m_defaultGroup;

gCoreContext->addListener(this);
}

Expand Down

0 comments on commit 7b1a099

Please sign in to comment.