tree-wide: use structured initialization at various places
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
2efa5bc6fa
commit
41ab8c67eb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user