1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #5569 from aabadie/fix_coap_example

examples/microcoap_server: fix .well-known/core endpoint
This commit is contained in:
Sebastian Meiling 2016-06-28 18:49:39 +02:00 committed by GitHub
commit 121028d33f

View File

@ -43,6 +43,8 @@ static int handle_get_well_known_core(coap_rw_buffer_t *scratch,
uint8_t id_hi, uint8_t id_lo)
{
char *rsp = (char *)response;
/* resetting the content of response message */
memset(response, 0, sizeof(response));
int len = sizeof(response);
const coap_endpoint_t *ep = endpoints;
int i;