From 73e770b7ade52ffc189eee91c2f60ba60e5865c1 Mon Sep 17 00:00:00 2001 From: Punith Kumar Date: Tue, 15 Feb 2022 22:07:19 +0000 Subject: [PATCH] bgpd: Fix uninitialized compiler warning Signed-off-by: Punith Kumar --- bgpd/bgp_mplsvpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index b5012e4586..eafc37f20c 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -526,7 +526,7 @@ static uint32_t alloc_new_sid(struct bgp *bgp, uint32_t index, struct prefix_ipv6 *chunk; struct in6_addr sid_buf; bool alloced = false; - int label; + int label = 0; if (!bgp || !sid) return false; -- 2.39.5