diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-12 19:09:20 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-12 19:09:20 +0000 |
commit | 58f7c82d520e64f2543a23266b8a80399d5592ee (patch) | |
tree | 2fbb04f66770141a8b8c6f14d86a6f58f0980f3a | |
parent | 4d1cd0da93be1a400cf7652fd658571bf9104359 (diff) |
Fix 'result' may be used uninitialized in function readwrite_data()
-rw-r--r-- | lib/transfer.c | 2 |
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; |