aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 5cb89280c..18ac32c32 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -950,7 +950,11 @@ void Curl_sndbufset(curl_socket_t sockfd)
}
#else
ULONGLONG cm;
- OSVERSIONINFOEX osver = { sizeof osver, majorVersion, };
+ OSVERSIONINFOEX osver;
+
+ memset(&osver, 0, sizeof(osver));
+ osver.dwOSVersionInfoSize = sizeof(osver);
+ osver.dwMajorVersion = majorVersion;
cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL);
cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_GREATER_EQUAL);