vcl: coverity fixes 61/32961/2
authorFlorin Coras <fcoras@cisco.com>
Wed, 30 Jun 2021 14:54:29 +0000 (07:54 -0700)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 30 Jun 2021 14:51:19 +0000 (14:51 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I290e4b0dff6afe7ce755074f3aaaf945dbbf3e09

src/vcl/vppcom.c

index 73ec40b..ddd5e0b 100644 (file)
@@ -3266,7 +3266,7 @@ static void
 vcl_epoll_wait_handle_lt (vcl_worker_t *wrk, struct epoll_event *events,
                          int maxevents, u32 *n_evts)
 {
-  u32 add_event, next;
+  u32 add_event = 0, next;
   vcl_session_t *s;
   u64 evt_data;
   int rv;