Skip to content

Commit

Permalink
Fix Coverity 700818. Uninitialized pointer field. Non-static class me…
Browse files Browse the repository at this point in the history
…mbers are not initialized in this constructor.
  • Loading branch information
stuartm committed Jun 9, 2013
1 parent 8c84d00 commit 0d35810
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mythtv/libs/libmythfreemheg/ParseText.cpp
Expand Up @@ -43,11 +43,13 @@ This is very basic and is only there to enable some test programs to be run.


MHParseText::MHParseText(QByteArray &program)
: m_lineCount(1), m_nType(PTNull),
m_ch(0), m_nTag(0),
m_nInt(0), m_fBool(false),
m_String((unsigned char *)malloc(100)),
m_nStringLength(0), m_p(0)

{
m_data = program;
m_lineCount = 1;
m_String = (unsigned char *)malloc(100); // Initial size - may grow.
m_p = 0;
}

MHParseText::~MHParseText()
Expand Down

0 comments on commit 0d35810

Please sign in to comment.