socket-util: use structured initialization

This commit is contained in:
Lennart Poettering
2018-10-15 19:35:00 +02:00
parent 0b7e8b322d
commit 9ec30b2769
+3 -2
View File
@@ -57,8 +57,9 @@ int socket_address_parse(SocketAddress *a, const char *s) {
assert(a);
assert(s);
zero(*a);
a->type = SOCK_STREAM;
*a = (SocketAddress) {
.type = SOCK_STREAM,
};
if (*s == '[') {
uint16_t port;