]> granicus.if.org Git - icinga2/commitdiff
Fix uninitialized field in the ApiListener class
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 08:56:09 +0000 (09:56 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 09:14:14 +0000 (10:14 +0100)
Coverity Bug ID: 1272321

lib/remote/apilistener.cpp
lib/remote/apilistener.hpp

index 04874b8312d88b816e012369480688bba9c17ba6..cda6ccd754eac092333ab466b35ab0b6aafc3641 100644 (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 */
index 122169ecafa5030d4dbea05745cc53e5fdff2078..642db025ed02d6ea2f277f1b30df5e985d829d6d 100644 (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;