]> granicus.if.org Git - curl/commitdiff
connect.c: Fixed compilation warning from commit 332e8d6164
authorSteve Holme <steve_holme@hotmail.com>
Sat, 4 Jun 2016 20:52:08 +0000 (21:52 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 4 Jun 2016 20:52:08 +0000 (21:52 +0100)
connect.c:952:5: warning: suggest explicit braces to avoid ambiguous 'else'

lib/connect.c

index dcfb4b4691622dc593e7ee7d5bf3e10a3736b2d2..9431a9720ea9f840d7c70482a09bae1420692929 100644 (file)
@@ -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;