aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-01 22:46:21 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-01 22:54:57 +0100
commita1b2a6bd935e875dea8d84e05bb559f0e678421d (patch)
tree3dd4a65a43bfb4eee8c5e2e47d36115a9ced8a34 /lib/vtls
parentc8331f515e605170d967ed62e1457eebe839cd2d (diff)
schannel: Fix compilation warning from commit 7a8e861a56
schannel.c:1125:5: warning: missing initializer for field 'dwMinorVersion' of 'OSVERSIONINFOEX' [-Wmissing-field-initializers
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/schannel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 2e03b7807..2174e21a3 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -1122,7 +1122,11 @@ cleanup:
!connssl->recv_sspi_close_notify) {
BOOL isWin2k;
ULONGLONG cm;
- OSVERSIONINFOEX osver = { sizeof osver, 5, };
+ OSVERSIONINFOEX osver;
+
+ memset(&osver, 0, sizeof(osver));
+ osver.dwOSVersionInfoSize = sizeof(osver);
+ osver.dwMajorVersion = 5;
cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_EQUAL);
cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_EQUAL);