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;
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,6 @@ public:
|
|||
|
||||
StreamLogger(void);
|
||||
|
||||
virtual void Start(void);
|
||||
virtual void Stop(void);
|
||||
~StreamLogger(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue