mirror of https://github.com/Icinga/icinga2.git
Fix uninitialized fields in the StreamLogger class
Coverity Bug ID: 1272329
This commit is contained in:
parent
ce1599fbb3
commit
a296147839
|
@ -29,21 +29,12 @@ REGISTER_TYPE(StreamLogger);
|
||||||
|
|
||||||
boost::mutex StreamLogger::m_Mutex;
|
boost::mutex StreamLogger::m_Mutex;
|
||||||
|
|
||||||
StreamLogger::StreamLogger(void)
|
|
||||||
: m_Stream(NULL), m_OwnsStream(false)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for the StreamLogger class.
|
* Constructor for the StreamLogger class.
|
||||||
*/
|
*/
|
||||||
void StreamLogger::Start(void)
|
StreamLogger::StreamLogger(void)
|
||||||
{
|
: m_Stream(NULL), m_OwnsStream(false), m_Tty(false)
|
||||||
Logger::Start();
|
{ }
|
||||||
|
|
||||||
m_Stream = NULL;
|
|
||||||
m_OwnsStream = false;
|
|
||||||
m_Tty = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void StreamLogger::Stop(void)
|
void StreamLogger::Stop(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,6 @@ public:
|
||||||
|
|
||||||
StreamLogger(void);
|
StreamLogger(void);
|
||||||
|
|
||||||
virtual void Start(void);
|
|
||||||
virtual void Stop(void);
|
virtual void Stop(void);
|
||||||
~StreamLogger(void);
|
~StreamLogger(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue