From 7d91eabe90e47e7c316f26566638cc88e1a8c2b4 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 18 Nov 2019 10:50:51 +0100 Subject: Common 27ac70f: Initialise InetAddress::addr --- lib/Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Socket.h') diff --git a/lib/Socket.h b/lib/Socket.h index c3c37e1..df80b08 100644 --- a/lib/Socket.h +++ b/lib/Socket.h @@ -50,7 +50,7 @@ namespace Socket { struct InetAddress { - struct sockaddr_storage addr; + struct sockaddr_storage addr = {}; struct sockaddr *as_sockaddr() { return reinterpret_cast(&addr); }; -- cgit v1.2.3