Skip to content

Commit

Permalink
Initialize the ports to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
HoratiuVultur committed Jun 30, 2020
1 parent ce8c1ef commit 40cf406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions state_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,8 @@ static int mrp_port_init(uint32_t p_ifindex, struct mrp *mrp,
if (!port)
return -ENOMEM;

memset(port, 0x0, sizeof(struct mrp_port));

port->mrp = mrp;
port->ifindex = p_ifindex;
if_get_mac(port->ifindex, port->macaddr);
Expand Down

0 comments on commit 40cf406

Please sign in to comment.