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.
Diff: src/exosite.c
- Revision:
- 16:c8abe6b916b4
- Parent:
- 15:5ab3e0c7413f
- Child:
- 17:661d4a5b7c1b
--- a/src/exosite.c Fri Jan 02 14:02:16 2015 -0600
+++ b/src/exosite.c Fri Jan 02 14:19:33 2015 -0600
@@ -320,7 +320,7 @@
if (coap_get_code_class(&pdu) == 2) {
payload = coap_get_payload(&pdu);
if (payload.len == 0) {
- op[i].value = 0;
+ op[i].value[0] = '\0';
} else if (payload.len+1 > op[i].value_max || op[i].value == 0) {
op[i].state = EXO_REQUEST_ERROR;
} else{
@@ -341,7 +341,7 @@
if (coap_get_code_class(&pdu) == 2) {
payload = coap_get_payload(&pdu);
if (payload.len == 0) {
- op[i].value = 0;
+ op[i].value[0] = '\0';
} else if (payload.len+1 > op[i].value_max || op[i].value == 0) {
op[i].state = EXO_REQUEST_ERROR;
} else{
@@ -367,7 +367,7 @@
payload = coap_get_payload(&pdu);
if (payload.len == 0) {
- op[i].value = 0;
+ op[i].value[0] = '\0';
} else if (payload.len+1 > op[i].value_max || op[i].value == 0) {
op[i].state = EXO_REQUEST_ERROR;
} else{