summaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 25477de4..35ef7220 100644
--- a/socket.c
+++ b/socket.c
@@ -819,7 +819,7 @@ static val sock_mark_connected(val sock)
if (sfd) {
val family = sock_family(sock);
- struct sockaddr_storage sa = { 0 };
+ struct sockaddr_storage sa = all_zero_init;
socklen_t salen = sizeof sa;
(void) getpeername(c_num(sfd), coerce(struct sockaddr *, &sa), &salen);