mbed HTTP client

Dependents:   SCP1000_Fastsensing ethernet_test thingspeak TemperatureMonitoringwiththingspeak ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Thu Apr 10 15:59:00 2014 +0000
Parent:
16:1f743885e7de
Commit message:
Fixed build error

Changed in this revision

HTTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);