mirror of https://github.com/Icinga/icinga2.git
Add VERIFY check in Utility::ExecuteDeferredInitializers
Coverity Bug ID: 1167738
This commit is contained in:
parent
f515d5415c
commit
2867d79514
|
@ -341,8 +341,10 @@ void Utility::ExecuteDeferredInitializers(void)
|
|||
if (!GetDeferredInitializers().get())
|
||||
return;
|
||||
|
||||
BOOST_FOREACH(const boost::function<void(void)>& callback, *GetDeferredInitializers().get())
|
||||
BOOST_FOREACH(const boost::function<void(void)>& callback, *GetDeferredInitializers().get()) {
|
||||
VERIFY(callback);
|
||||
callback();
|
||||
}
|
||||
|
||||
GetDeferredInitializers().reset();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue