diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 73ba905f9c32..8183398a8d32 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -219,7 +219,7 @@ int inet_ntoa_lock = 0; static int php_open_listen_sock(php_socket *sock, int port, int backlog) /* {{{ */ { - struct sockaddr_in la; + struct sockaddr_in la = {0}; struct hostent *hp; #ifndef PHP_WIN32