mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fixup cleanups
This commit is contained in:
parent
7bdab0c204
commit
3144d465f1
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ static size_t ngsi_request_writer(void *contents, size_t size, size_t nmemb, voi
|
|||
struct ngsi_response *mem = (struct ngsi_response *) userp;
|
||||
|
||||
mem->data = realloc(mem->data, mem->len + realsize + 1);
|
||||
if(mem->data == NULL) /* out of memory! */
|
||||
if (mem->data == NULL) /* out of memory! */
|
||||
error("Not enough memory (realloc returned NULL)");
|
||||
|
||||
memcpy(&(mem->data[mem->len]), contents, realsize);
|
||||
|
|
Loading…
Add table
Reference in a new issue