aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-12 19:09:20 +0000
committerYang Tse <yangsita@gmail.com>2008-08-12 19:09:20 +0000
commit58f7c82d520e64f2543a23266b8a80399d5592ee (patch)
tree2fbb04f66770141a8b8c6f14d86a6f58f0980f3a
parent4d1cd0da93be1a400cf7652fd658571bf9104359 (diff)
Fix 'result' may be used uninitialized in function readwrite_data()
-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;