From d43629d000c2367462bc61ab8c3685abac8f2227 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 17 Mar 2017 12:57:10 +0100 Subject: config: satisfy sparse Signed-off-by: Jason A. Donenfeld --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index 30c876e..4191eb6 100644 --- a/src/config.c +++ b/src/config.c @@ -75,7 +75,7 @@ static int set_peer(struct wireguard_device *wg, void __user *user_peer, size_t } if (in_peer.endpoint.addr.sa_family == AF_INET || in_peer.endpoint.addr.sa_family == AF_INET6) { - struct endpoint endpoint = { 0 }; + struct endpoint endpoint = { { { 0 } } }; memcpy(&endpoint, &in_peer.endpoint, sizeof(in_peer.endpoint)); socket_set_peer_endpoint(peer, &endpoint); } -- cgit v1.2.3