From: Steve Holme Date: Sat, 4 Jun 2016 20:52:08 +0000 (+0100) Subject: connect.c: Fixed compilation warning from commit 332e8d6164 X-Git-Tag: curl-7_50_0~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61c92c7850cb83c572827dc348247b8b9b57c25a;p=curl connect.c: Fixed compilation warning from commit 332e8d6164 connect.c:952:5: warning: suggest explicit braces to avoid ambiguous 'else' --- diff --git a/lib/connect.c b/lib/connect.c index dcfb4b469..9431a9720 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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;