mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
[2445] Add assert() after dynamic_cast
This commit is contained in:
@@ -262,7 +262,7 @@ void LoggerManagerImpl::flushBufferAppenders() {
|
|||||||
for (it = copy.begin(); it != copy.end(); ++it) {
|
for (it = copy.begin(); it != copy.end(); ++it) {
|
||||||
internal::BufferAppender* app =
|
internal::BufferAppender* app =
|
||||||
dynamic_cast<internal::BufferAppender*>(it->get());
|
dynamic_cast<internal::BufferAppender*>(it->get());
|
||||||
assert(app != NULL;
|
assert(app != NULL);
|
||||||
app->flush();
|
app->flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user