diff options
Diffstat (limited to 'src/shared/socket-netlink.c')
-rw-r--r-- | src/shared/socket-netlink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/socket-netlink.c b/src/shared/socket-netlink.c index 5177137b99..ba33825340 100644 --- a/src/shared/socket-netlink.c +++ b/src/shared/socket-netlink.c @@ -243,8 +243,9 @@ int socket_address_parse_netlink(SocketAddress *a, const char *s) { assert(a); assert(s); - zero(*a); - a->type = SOCK_RAW; + *a = (SocketAddress) { + .type = SOCK_RAW, + }; r = extract_first_word(&s, &word, NULL, 0); if (r < 0) |