From: Yang Tse Date: Wed, 13 Sep 2006 12:42:12 +0000 (+0000) Subject: Compiler warning fix X-Git-Tag: curl-7_16_0~169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d3e719a2ccdaeb79a62aaf2243f93c9855008ef;p=thirdparty%2Fcurl.git Compiler warning fix --- diff --git a/lib/url.c b/lib/url.c index 641d3bf301..3b677f7fdd 100644 --- a/lib/url.c +++ b/lib/url.c @@ -4070,15 +4070,17 @@ static CURLcode CreateConnection(struct SessionHandle *data, conn->fread = data->set.fread; conn->fread_in = data->set.in; - conn->bits.upload_chunky = - ((conn->protocol&PROT_HTTP) && - data->set.upload && - (data->set.infilesize == -1) && - (data->set.httpversion != CURL_HTTP_VERSION_1_0))? + if ((conn->protocol&PROT_HTTP) && + data->set.upload && + (data->set.infilesize == -1) && + (data->set.httpversion != CURL_HTTP_VERSION_1_0)) { /* HTTP, upload, unknown file size and not HTTP 1.0 */ - TRUE: - /* else, no chunky upload */ - FALSE; + conn->bits.upload_chunky = TRUE; + } + else { + /* else, no chunky upload */ + conn->bits.upload_chunky = FALSE; + } #ifndef USE_ARES /*************************************************************