mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 20:25:39 +02:00
module/network: initialize MAC address to 0
This fixes a valgrind "uninitialized value(s)" warning.
This commit is contained in:
parent
a96f901a15
commit
0ab8dad7b9
1 changed files with 1 additions and 0 deletions
|
@ -519,6 +519,7 @@ module_network(const char *iface, struct particle *label)
|
|||
priv->nl_sock = -1;
|
||||
priv->get_addresses = true;
|
||||
priv->ifindex = -1;
|
||||
memset(priv->mac, 0, sizeof(priv->mac));
|
||||
priv->carrier = false;
|
||||
priv->state = IF_OPER_DOWN;
|
||||
memset(&priv->addrs, 0, sizeof(priv->addrs));
|
||||
|
|
Loading…
Add table
Reference in a new issue