From 5d8c71253fa6500b7dba42bc479ecba9ef0996ec Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Wed, 12 Jun 2013 14:07:58 +0100 Subject: [PATCH] CustomPriority: fix coverity ID 746878 Uninitialized pointer field In CustomPriority::CustomPriority(): Several fields are not initialized in the constructor. --- mythtv/programs/mythfrontend/custompriority.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mythtv/programs/mythfrontend/custompriority.cpp b/mythtv/programs/mythfrontend/custompriority.cpp index 4c5c2b096ee..09f9008c668 100644 --- a/mythtv/programs/mythfrontend/custompriority.cpp +++ b/mythtv/programs/mythfrontend/custompriority.cpp @@ -27,7 +27,12 @@ #include "viewschedulediff.h" CustomPriority::CustomPriority(MythScreenStack *parent, ProgramInfo *proginfo) - : MythScreenType(parent, "CustomPriority") + : MythScreenType(parent, "CustomPriority"), + m_ruleList(NULL), m_clauseList(NULL), + m_titleEdit(NULL), m_descriptionEdit(NULL), + m_prioritySpin(NULL), m_addButton(NULL), + m_testButton(NULL), m_installButton(NULL), + m_deleteButton(NULL), m_cancelButton(NULL) { if (proginfo) m_pginfo = new ProgramInfo(*proginfo);