Commit 61c92c78 authored by Steve Holme's avatar Steve Holme
Browse files

connect.c: Fixed compilation warning from commit 332e8d61

connect.c:952:5: warning: suggest explicit braces to avoid ambiguous 'else'
parent 332e8d61
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;