mirror of
https://github.com/curl/curl.git
synced 2026-07-26 21:37:16 +03: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:
parent
332e8d6164
commit
61c92c7850
1 changed files with 2 additions and 1 deletions
|
|
@ -949,12 +949,13 @@ void Curl_sndbufset(curl_socket_t sockfd)
|
|||
|
||||
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,
|
||||
VERSION_GREATER_THAN_EQUAL))
|
||||
detectOsState = DETECT_OS_VISTA_OR_LATER;
|
||||
else
|
||||
detectOsState = DETECT_OS_PREVISTA;
|
||||
}
|
||||
|
||||
if(detectOsState == DETECT_OS_VISTA_OR_LATER)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue