diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-08 12:32:21 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-08-08 12:32:21 +0200 |
commit | c517178d2c396b3c5860057c3a6c2595eb70c2e0 (patch) | |
tree | 300c7d3bb2c531bb4f2a6eb7c8fc78cabb886cf8 /pimd/pim_nht.c | |
parent | Merge pull request #2774 from qlyoung/fix-bgpd-questionable-clist-memory-mgmt (diff) | |
download | frr-c517178d2c396b3c5860057c3a6c2595eb70c2e0.tar.xz frr-c517178d2c396b3c5860057c3a6c2595eb70c2e0.zip |
pimd: fix bogus uninitialized warning
pimd/pim_nht.c: In function ‘pim_ecmp_nexthop_search’:
pimd/pim_nht.c:523:17: error: ‘nbr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nexthop->nbr = nbr;
(on gcc 5.4.0; this is the only warning with that version.)
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to '')
-rw-r--r-- | pimd/pim_nht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c index 74dfed045..0a64c8db3 100644 --- a/pimd/pim_nht.c +++ b/pimd/pim_nht.c @@ -352,7 +352,7 @@ int pim_ecmp_nexthop_search(struct pim_instance *pim, struct pim_nexthop *nexthop, struct prefix *src, struct prefix *grp, int neighbor_needed) { - struct pim_neighbor *nbrs[MULTIPATH_NUM], *nbr; + struct pim_neighbor *nbrs[MULTIPATH_NUM], *nbr = NULL; struct interface *ifps[MULTIPATH_NUM]; struct nexthop *nh_node = NULL; ifindex_t first_ifindex; |