Fix uninitialized field in the ApiListener class

Coverity Bug ID: 1272321
This commit is contained in:
Gunnar Beutner 2015-03-02 09:56:09 +01:00
parent 41cb5977f3
commit e52a1f38f3
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,10 @@ boost::signals2::signal<void(bool)> ApiListener::OnMasterChanged;
REGISTER_STATSFUNCTION(ApiListenerStats, &ApiListener::StatsFunc);
ApiListener::ApiListener(void)
: m_LogMessageCount(0)
{ }
void ApiListener::OnConfigLoaded(void)
{
/* set up SSL context */

View File

@ -47,6 +47,8 @@ public:
static boost::signals2::signal<void(bool)> OnMasterChanged;
ApiListener(void);
static ApiListener::Ptr GetInstance(void);
boost::shared_ptr<SSL_CTX> GetSSLContext(void) const;