diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-02-05 17:11:47 +0100 | 
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-06-05 11:08:46 +0200 | 
| commit | e93fa4daf07c393c733cd2c26b1edaa84a98be95 (patch) | |
| tree | 52747179339a4dca4dfcd6be9bd5b3356cfdb5e2 /bgpd/bgp_route.c | |
| parent | 7a513e3361eb879a6a0ea64939c68cd949e8fd76 (diff) | |
bgpd: do not init labels in extra
No need to init labels at extra allocation. num_labels is the number
of set labels in label[] and is initialized to 0 by default.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_route.c')
| -rw-r--r-- | bgpd/bgp_route.c | 2 | 
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 3db883fc08..b8fdb89996 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -235,8 +235,6 @@ static struct bgp_path_info_extra *bgp_path_info_extra_new(void)  	struct bgp_path_info_extra *new;  	new = XCALLOC(MTYPE_BGP_ROUTE_EXTRA,  		      sizeof(struct bgp_path_info_extra)); -	new->label[0] = MPLS_INVALID_LABEL; -	new->num_labels = 0;  	new->flowspec = NULL;  	return new;  }  | 
