diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-08-01 22:46:21 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-08-01 22:54:57 +0100 |
commit | a1b2a6bd935e875dea8d84e05bb559f0e678421d (patch) | |
tree | 3dd4a65a43bfb4eee8c5e2e47d36115a9ced8a34 | |
parent | c8331f515e605170d967ed62e1457eebe839cd2d (diff) |
schannel: Fix compilation warning from commit 7a8e861a56
schannel.c:1125:5: warning: missing initializer for field 'dwMinorVersion'
of 'OSVERSIONINFOEX' [-Wmissing-field-initializers
-rw-r--r-- | lib/vtls/schannel.c | 6 |
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); |