Merge pull request #10597 from FRRouting/mergify/bp/dev/8.2/pr-10586

bgpd: uninitialized compiler warning (backport #10586)
This commit is contained in:
Mark Stapp 2022-02-16 12:57:20 -05:00 committed by GitHub
commit c432b3c775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;