]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix uninitialized compiler warning 10586/head
authorPunith Kumar <punithkumar.spk@gmail.com>
Tue, 15 Feb 2022 22:07:19 +0000 (22:07 +0000)
committerPunith Kumar <punithkumar.spk@gmail.com>
Tue, 15 Feb 2022 22:07:19 +0000 (22:07 +0000)
Signed-off-by: Punith Kumar <punithkumar.spk@gmail.com>
bgpd/bgp_mplsvpn.c

index b5012e45868a774be7abddb5012cc21019fa1524..eafc37f20c7c596abcaa176971d4ca11f4f8affe 100644 (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;