winetest: Initialize sin_zero field sockaddr_in structure (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-07-28 18:29:24 +03:00 committed by Alexandre Julliard
parent 858064abf6
commit 2e97facdd0

View file

@ -52,6 +52,7 @@ open_http (const char *server)
sa.sin_family = AF_INET;
sa.sin_port = htons (80);
sa.sin_addr.s_addr = inet_addr (server);
memset (sa.sin_zero, 0, sizeof(sa.sin_zero));
if (sa.sin_addr.s_addr == INADDR_NONE) {
struct hostent *host = gethostbyname (server);
if (!host) {