aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/elog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/elog.c')
-rw-r--r--src/vppinfra/elog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vppinfra/elog.c b/src/vppinfra/elog.c
index cd4d89583cb..089c2509f71 100644
--- a/src/vppinfra/elog.c
+++ b/src/vppinfra/elog.c
@@ -614,8 +614,8 @@ elog_string (elog_main_t * em, char *fmt, ...)
elog_event_t *
elog_get_events (elog_main_t * em)
{
- if (!em->events)
- em->events = elog_peek_events (em);
+ vec_reset_length (em->events);
+ em->events = elog_peek_events (em);
return em->events;
}