summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-04-05 02:24:52 -0700
committerChris Luke <chris_luke@comcast.com>2018-04-07 21:05:59 +0000
commit88f0a3d93093f1301cdab8157f145ab5bdc91ec9 (patch)
treeeea8ab2bc68d94293ba5f7047769dd5470e43a0d /src/vnet/bier
parent24c3733f1f91ad04ad3b388cb1b666540d8598db (diff)
BIER coveroty fix for unintialised return value on error
Change-Id: I2b1d1035f810cb58356626cf081d46eb289265b4 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/bier')
-rw-r--r--src/vnet/bier/bier_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c
index 7263ec65720..93048a0a890 100644
--- a/src/vnet/bier/bier_api.c
+++ b/src/vnet/bier/bier_api.c
@@ -293,7 +293,7 @@ vl_api_bier_imp_add_t_handler (vl_api_bier_imp_add_t * mp)
{
vl_api_bier_imp_add_reply_t *rmp;
vnet_main_t *vnm;
- index_t bii;
+ index_t bii = ~0;
int rv = 0;
vnm = vnet_get_main ();