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)
|
||||
: m_CheckRunning(false)
|
||||
{ }
|
||||
{
|
||||
SetSchedulingOffset(Utility::Random());
|
||||
}
|
||||
|
||||
void Checkable::Start(void)
|
||||
{
|
||||
|
@ -48,13 +50,6 @@ void Checkable::Start(void)
|
|||
DynamicObject::Start();
|
||||
}
|
||||
|
||||
void Checkable::OnConfigLoaded(void)
|
||||
{
|
||||
DynamicObject::OnConfigLoaded();
|
||||
|
||||
SetSchedulingOffset(Utility::Random());
|
||||
}
|
||||
|
||||
void Checkable::OnStateLoaded(void)
|
||||
{
|
||||
AddDowntimesToCache();
|
||||
|
|
|
@ -282,7 +282,6 @@ public:
|
|||
protected:
|
||||
virtual void Start(void);
|
||||
|
||||
virtual void OnConfigLoaded(void);
|
||||
virtual void OnStateLoaded(void);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue