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 | |
| parent | 00239c1d4ff3a48af7c8df4f64b9d510d57dab03 (diff) | |
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 'pimd')
| -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 74dfed0455..0a64c8db3d 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;  | 
