1
0
Fork 0
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:
Steffen Vogel 2018-08-20 18:30:14 +02:00
parent 7bdab0c204
commit 3144d465f1

View file

@ -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);