mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-05 11:26:14 +00:00
zebra: Let's use memset instead of walking bytes and setting to 0
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
ecd9d441b0
commit
659cd66427
@ -300,14 +300,8 @@ static void get_fwtable_route_node(struct variable *v, oid objid[],
|
||||
int i;
|
||||
|
||||
/* Init index variables */
|
||||
|
||||
pnt = (uint8_t *)&dest;
|
||||
for (i = 0; i < 4; i++)
|
||||
*pnt++ = 0;
|
||||
|
||||
pnt = (uint8_t *)&nexthop;
|
||||
for (i = 0; i < 4; i++)
|
||||
*pnt++ = 0;
|
||||
memset(&dest, 0, sizeof(dest));
|
||||
memset(&nexthop, 0, sizeof(nexthop));
|
||||
|
||||
proto = 0;
|
||||
policy = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user