bgpd: Fix uninitialized compiler warning

Signed-off-by: Punith Kumar <punithkumar.spk@gmail.com>
(cherry picked from commit 73e770b7ad)
This commit is contained in:
Punith Kumar 2022-02-15 22:07:19 +00:00 committed by mergify-bot
parent 3b71608cb9
commit 281c28cd40

View File

@ -529,7 +529,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;