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: SCP1000_Fastsensing ethernet_test thingspeak TemperatureMonitoringwiththingspeak ... more
Diff: HTTPClient.cpp
- Revision:
- 17:cca5d89e6a2b
- Parent:
- 16:1f743885e7de
--- a/HTTPClient.cpp Thu Aug 30 15:38:57 2012 +0000
+++ b/HTTPClient.cpp Thu Apr 10 15:59:00 2014 +0000
@@ -296,7 +296,7 @@
{
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';
@@ -392,7 +392,7 @@
{
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);