mirror of https://github.com/Icinga/icinga2.git
Fix uninitialized field in the Checkable class
Coverity Bug ID: 1272323
This commit is contained in:
parent
2ee1a197a9
commit
9548692f00
|
@ -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();
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue