blob: 6b3ea1d74f2473132495b49644bccb6b2ca6412c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/socket.d.orig Mon Mar 19 11:13:09 2001
+++ src/socket.d Tue May 15 13:35:22 2001
@@ -304,7 +304,7 @@
#ifdef HAVE_INET_PTON
#ifdef HAVE_IPV6
{
- var struct sockaddr_in6 inaddr;
+ var struct sockaddr_in6 inaddr = {0};
if (inet_pton(AF_INET6,host,&inaddr.sin6_addr) > 0) {
inaddr.sin6_family = AF_INET6;
inaddr.sin6_port = htons(port);
@@ -313,7 +313,7 @@
}
#endif
{
- var struct sockaddr_in inaddr;
+ var struct sockaddr_in inaddr = {0};
if (inet_pton(AF_INET,host,&inaddr.sin_addr) > 0) {
inaddr.sin_family = AF_INET;
inaddr.sin_port = htons(port);
|