Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Car_Bon_car_module
Fork of HTTPClient by
Revision 25:19392aabd83d, committed 2014-03-16
- Comitter:
- ansond
- Date:
- Sun Mar 16 03:12:18 2014 +0000
- Parent:
- 24:07dc6a23ca28
- Commit message:
- updates
Changed in this revision
| HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file | 
diff -r 07dc6a23ca28 -r 19392aabd83d HTTPClient.cpp
--- a/HTTPClient.cpp	Sun Mar 16 03:11:53 2014 +0000
+++ b/HTTPClient.cpp	Sun Mar 16 03:12:18 2014 +0000
@@ -390,7 +390,7 @@
                 }
                 if(!foundCrlf) { //Try to read more
                     if( trfLen < CHUNK_SIZE ) {
-                        size_t newTrfLen;
+                        size_t newTrfLen = 0;
                         ret = recv(buf + trfLen, 0, CHUNK_SIZE - trfLen - 1, &newTrfLen);
                         trfLen += newTrfLen;
                         CHECK_CONN_ERR(ret);
    