From: Steve Holme Date: Sat, 1 Aug 2015 21:46:21 +0000 (+0100) Subject: schannel: Fix compilation warning from commit 7a8e861a56 X-Git-Tag: curl-7_44_0~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1b2a6bd935e875dea8d84e05bb559f0e678421d;p=thirdparty%2Fcurl.git schannel: Fix compilation warning from commit 7a8e861a56 schannel.c:1125:5: warning: missing initializer for field 'dwMinorVersion' of 'OSVERSIONINFOEX' [-Wmissing-field-initializers --- diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 2e03b78075..2174e21a3c 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);