forked from external/yambar
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->nl_sock = -1;
|
||||||
priv->get_addresses = true;
|
priv->get_addresses = true;
|
||||||
priv->ifindex = -1;
|
priv->ifindex = -1;
|
||||||
|
memset(priv->mac, 0, sizeof(priv->mac));
|
||||||
priv->carrier = false;
|
priv->carrier = false;
|
||||||
priv->state = IF_OPER_DOWN;
|
priv->state = IF_OPER_DOWN;
|
||||||
memset(&priv->addrs, 0, sizeof(priv->addrs));
|
memset(&priv->addrs, 0, sizeof(priv->addrs));
|
||||||
|
|
Loading…
Add table
Reference in a new issue