aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-05-22 08:38:26 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-05-22 08:38:26 +0200
commitf6343558686e2c8d24d4ea0badbbd45335896b5f (patch)
tree5289b4a0f08c56b6eee3d6f6be1c4da68875a21e
parent461d45ea7a459c15104c97cbcfa20ea3aa532c56 (diff)
http: Fix a compiler warning when http2 support is disabled
-rw-r--r--lib/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index cfdaaddfc..5711ee64b 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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;