From a1b2a6bd935e875dea8d84e05bb559f0e678421d Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 1 Aug 2015 22:46:21 +0100 Subject: schannel: Fix compilation warning from commit 7a8e861a56 schannel.c:1125:5: warning: missing initializer for field 'dwMinorVersion' of 'OSVERSIONINFOEX' [-Wmissing-field-initializers --- lib/vtls/schannel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3