Fix uninitialized fields in the StreamLogger class

Coverity Bug ID: 1272329
This commit is contained in:
Gunnar Beutner 2015-03-02 10:09:21 +01:00
parent ce1599fbb3
commit a296147839
2 changed files with 3 additions and 13 deletions

View File

@ -29,21 +29,12 @@ REGISTER_TYPE(StreamLogger);
boost::mutex StreamLogger::m_Mutex;
StreamLogger::StreamLogger(void)
: m_Stream(NULL), m_OwnsStream(false)
{ }
/**
* Constructor for the StreamLogger class.
*/
void StreamLogger::Start(void)
{
Logger::Start();
m_Stream = NULL;
m_OwnsStream = false;
m_Tty = false;
}
StreamLogger::StreamLogger(void)
: m_Stream(NULL), m_OwnsStream(false), m_Tty(false)
{ }
void StreamLogger::Stop(void)
{

View File

@ -40,7 +40,6 @@ public:
StreamLogger(void);
virtual void Start(void);
virtual void Stop(void);
~StreamLogger(void);