1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

socket-util: use structured initialization

This commit is contained in:
Lennart Poettering 2018-10-15 13:55:00 +02:00
parent 0b7e8b322d
commit 9ec30b2769

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;