Fix uninitialized field in the Checkable class

Coverity Bug ID: 1272323
This commit is contained in:
Gunnar Beutner 2015-03-02 09:58:29 +01:00
parent 2ee1a197a9
commit 9548692f00
2 changed files with 3 additions and 9 deletions

View File

@ -36,7 +36,9 @@ boost::signals2::signal<void (const Checkable::Ptr&, const MessageOrigin&)> Chec
Checkable::Checkable(void) Checkable::Checkable(void)
: m_CheckRunning(false) : m_CheckRunning(false)
{ } {
SetSchedulingOffset(Utility::Random());
}
void Checkable::Start(void) void Checkable::Start(void)
{ {
@ -48,13 +50,6 @@ void Checkable::Start(void)
DynamicObject::Start(); DynamicObject::Start();
} }
void Checkable::OnConfigLoaded(void)
{
DynamicObject::OnConfigLoaded();
SetSchedulingOffset(Utility::Random());
}
void Checkable::OnStateLoaded(void) void Checkable::OnStateLoaded(void)
{ {
AddDowntimesToCache(); AddDowntimesToCache();

View File

@ -282,7 +282,6 @@ public:
protected: protected:
virtual void Start(void); virtual void Start(void);
virtual void OnConfigLoaded(void);
virtual void OnStateLoaded(void); virtual void OnStateLoaded(void);
private: private: