aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/gbp/gbp_api.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-02-20 12:56:22 +0000
committerDamjan Marion <dmarion@me.com>2020-02-21 09:55:34 +0000
commite9a630a5248ee6e234c1bf1fdb2c29fc6239f60d (patch)
treed759f8009fc42e7951e9d872c61e1709f2aeb3c0 /src/plugins/gbp/gbp_api.c
parentea96e92361b483962fd2a6b027cedc02f3bb6f93 (diff)
gbp: Coverity warnings for unitialized variables
Type: fix Change-Id: If74ad528e68f45b00719295388e0e1399452ef93 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_api.c')
-rw-r--r--src/plugins/gbp/gbp_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/gbp/gbp_api.c b/src/plugins/gbp/gbp_api.c
index bbcd2d4e1d3..aea03d80226 100644
--- a/src/plugins/gbp/gbp_api.c
+++ b/src/plugins/gbp/gbp_api.c
@@ -99,6 +99,8 @@ vl_api_gbp_endpoint_add_t_handler (vl_api_gbp_endpoint_add_t * mp)
mac_address_t mac;
int rv = 0, ii;
+ handle = INDEX_INVALID;
+
VALIDATE_SW_IF_INDEX (&(mp->endpoint));
gef = gbp_endpoint_flags_decode (mp->endpoint.flags), ips = NULL;