diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-17 12:57:10 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-19 15:34:46 +0100 |
commit | d43629d000c2367462bc61ab8c3685abac8f2227 (patch) | |
tree | 4fe4a081ca83c3e427e94c247e2cc907bdb3f463 /src | |
parent | b323b7f9d78e6b4b525fecac6c72d54aa3c42c73 (diff) |
config: satisfy sparse
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |