]> granicus.if.org Git - curl/commitdiff
gtls: fix indent to silence compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Fri, 18 Nov 2016 07:46:59 +0000 (08:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Nov 2016 22:41:45 +0000 (23:41 +0100)
vtls/gtls.c: In function ‘Curl_gtls_data_pending’:
vtls/gtls.c:1429:3: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
   if(conn->proxy_ssl[connindex].session &&
      ^~
      vtls/gtls.c:1433:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
           return res;

lib/vtls/gtls.c

index ba07faac60be5f1fedce42fe81aa03e2c7b90b98..4ef06ee5d02d9fb00571a7d3b5e71ef4f27fa699 100644 (file)
@@ -1430,7 +1430,7 @@ bool Curl_gtls_data_pending(const struct connectdata *conn, int connindex)
      0 != gnutls_record_check_pending(conn->proxy_ssl[connindex].session))
     res = TRUE;
 
-    return res;
+  return res;
 }
 
 static ssize_t gtls_send(struct connectdata *conn,