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 24:07dc6a23ca28, committed 2014-03-16
- Comitter:
- ansond
- Date:
- Sun Mar 16 03:11:53 2014 +0000
- Parent:
- 23:96a9385ceeb6
- Child:
- 25:19392aabd83d
- Commit message:
- updates
Changed in this revision
| HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Fri Mar 14 21:25:55 2014 +0000
+++ b/HTTPClient.cpp Sun Mar 16 03:11:53 2014 +0000
@@ -314,7 +314,7 @@
crlfPtr = strstr(buf, "\r\n");
if(crlfPtr == NULL) {
if( trfLen < CHUNK_SIZE - 1 ) {
- size_t newTrfLen;
+ size_t newTrfLen = 0;
ret = recv(buf + trfLen, 1, CHUNK_SIZE - trfLen - 1, &newTrfLen);
trfLen += newTrfLen;
buf[trfLen] = '\0';
