aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-04-25 00:50:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-01 22:55:29 +0200
commit40a074f255de90003ab753f5d0ad61b74c62ca9b (patch)
tree8492e503e111470f074f35f60706b393a52c12c2
parentf2fadf490f66ad364f5a6f0356d626dda5f9a82f (diff)
transfer: fix minor buffer_size mistake
-rw-r--r--lib/transfer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 72ab5446c..d6aac675b 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -405,8 +405,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
/* This is where we loop until we have read everything there is to
read or we get a CURLE_AGAIN */
do {
- size_t buffersize = data->set.buffer_size?
- data->set.buffer_size : BUFSIZE;
+ size_t buffersize = data->set.buffer_size;
size_t bytestoread = buffersize;
if(