aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 3457f7c26..dae8599b9 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -353,7 +353,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
struct SingleRequest *k,
int *didwhat, bool *done)
{
- CURLcode result;
+ CURLcode result = CURLE_OK;
ssize_t nread; /* number of bytes read */
bool is_empty_data = FALSE;