1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

connect.c: Fixed compilation warning from commit 332e8d6164

connect.c:952:5: warning: suggest explicit braces to avoid ambiguous 'else'
This commit is contained in:
Steve Holme 2016-06-04 21:52:08 +01:00
parent 332e8d6164
commit 61c92c7850

View File

@ -949,12 +949,13 @@ void Curl_sndbufset(curl_socket_t sockfd)
static int detectOsState = DETECT_OS_NONE; static int detectOsState = DETECT_OS_NONE;
if(detectOsState == DETECT_OS_NONE) if(detectOsState == DETECT_OS_NONE) {
if(Curl_verify_windows_version(6, 0, PLATFORM_WINNT, if(Curl_verify_windows_version(6, 0, PLATFORM_WINNT,
VERSION_GREATER_THAN_EQUAL)) VERSION_GREATER_THAN_EQUAL))
detectOsState = DETECT_OS_VISTA_OR_LATER; detectOsState = DETECT_OS_VISTA_OR_LATER;
else else
detectOsState = DETECT_OS_PREVISTA; detectOsState = DETECT_OS_PREVISTA;
}
if(detectOsState == DETECT_OS_VISTA_OR_LATER) if(detectOsState == DETECT_OS_VISTA_OR_LATER)
return; return;