http: Fix a compiler warning when http2 support is disabled
authorDan Fandrich <dan@coneharvesters.com>
Thu, 22 May 2014 06:38:26 +0000 (08:38 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 22 May 2014 06:38:26 +0000 (08:38 +0200)
lib/http.c

index cfdaaddfc78e2620cf2a2876a5e8d21ba48b5efc..5711ee64b2b87ce6da9f17b6eabc3375a937e045 100644 (file)
@@ -1761,9 +1761,10 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
       break;
     }
   }
-  else
+  else {
     /* prepare for a http2 request */
     Curl_http2_setup(conn);
+  }
 
   http = data->req.protop;