summaryrefslogtreecommitdiff
path: root/lib/curl_sspi.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-01 22:50:42 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-01 22:55:01 +0100
commit11ab3f8918eabb364060714e609ebd8fc2f3b336 (patch)
treed0af0604f63cef92b75ef5db138618f87128f1cd /lib/curl_sspi.c
parenta1b2a6bd935e875dea8d84e05bb559f0e678421d (diff)
downloadcurl-11ab3f8918eabb364060714e609ebd8fc2f3b336.tar.gz
win32: Fix compilation warnings from commit 40c921f8b8
connect.c:953:5: warning: initializer element is not computable at load time connect.c:953:5: warning: missing initializer for field 'dwMinorVersion' of 'OSVERSIONINFOEX' curl_sspi.c:97:5: warning: initializer element is not computable at load time curl_sspi.c:97:5: warning: missing initializer for field 'szCSDVersion' of 'OSVERSIONINFOEX'
Diffstat (limited to 'lib/curl_sspi.c')
-rw-r--r--lib/curl_sspi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/curl_sspi.c b/lib/curl_sspi.c
index d54587bbb..d2c37670e 100644
--- a/lib/curl_sspi.c
+++ b/lib/curl_sspi.c
@@ -94,7 +94,12 @@ CURLcode Curl_sspi_global_init(void)
securityDll = TRUE;
#else
ULONGLONG cm;
- OSVERSIONINFOEX osver = { sizeof osver, majorVersion, 0, 0, platformId, };
+ OSVERSIONINFOEX osver;
+
+ memset(&osver, 0, sizeof(osver));
+ osver.dwOSVersionInfoSize = sizeof(osver);
+ osver.dwMajorVersion = majorVersion;
+ osver.dwPlatformId = platformId;
cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_EQUAL);
cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_GREATER_EQUAL);