diff options
author | Maks Naumov <maksqwe1@ukr.net> | 2016-11-14 12:33:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-11-14 11:33:43 +0100 |
commit | 45d34fa7fb9f587f09e8cca882966050b4cbb5be (patch) | |
tree | ed9f2eb3d3e78a0cfa10d891aee4a9bf774e4f1a | |
parent | 1f8c78a1bab2e06a462894fa89d842ffc313832d (diff) |
link: fix offload features initialization (#4639)
-rw-r--r-- | src/udev/net/link-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 4578d0d9b2..1dca375279 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -169,7 +169,7 @@ static int load_link(link_config_ctx *ctx, const char *filename) { link->duplex = _DUP_INVALID; link->autonegotiation = -1; - memset(&link->features, -1, _NET_DEV_FEAT_MAX); + memset(&link->features, -1, sizeof(link->features)); r = config_parse(NULL, filename, file, "Match\0Link\0Ethernet\0", |