summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index ab6b4e6c..c7660536 100644
--- a/socket.c
+++ b/socket.c
@@ -656,7 +656,7 @@ static val sock_accept(val sock, val mode_str)
val family = sock_family(sock);
val type = sock_type(sock);
struct sockaddr_storage sa;
- socklen_t salen;
+ socklen_t salen = sizeof sa;
val peer = nil;
if (type == num_fast(SOCK_DGRAM)) {