Commit 2e97facd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

winetest: Initialize sin_zero field sockaddr_in structure (Coverity).

parent 858064ab
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment