From 7b1a09943b0d59b26cfd9b7410422e99691eb43c Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Wed, 12 Jun 2013 13:41:37 +0100 Subject: [PATCH] ViewScheduled: fix coverity ID 746886 Uninitialized pointer field In ViewScheduled::ViewScheduled(): Several fields are not initialized in the constructor. --- .../programs/mythfrontend/viewscheduled.cpp | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/mythtv/programs/mythfrontend/viewscheduled.cpp b/mythtv/programs/mythfrontend/viewscheduled.cpp index ec91bcfaa10..35b948391ff 100644 --- a/mythtv/programs/mythfrontend/viewscheduled.cpp +++ b/mythtv/programs/mythfrontend/viewscheduled.cpp @@ -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); }