bgpd: Fix uninitialized compiler warning

Signed-off-by: Punith Kumar <punithkumar.spk@gmail.com>
This commit is contained in:
Punith Kumar 2022-02-15 22:07:19 +00:00
parent 1e5c949d36
commit 73e770b7ad

View File

@ -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;