A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: amqpvalue_to_string.c
- Revision:
- 25:1101516ee67d
- Parent:
- 23:1111ee8bcba4
- Child:
- 28:add19eb7defa
--- a/amqpvalue_to_string.c Mon May 08 10:50:45 2017 -0700 +++ b/amqpvalue_to_string.c Mon May 22 10:35:21 2017 -0700 @@ -27,6 +27,8 @@ } else { + char* new_string; + size_t length = strlen(to_concat) + 1; size_t src_length; @@ -41,7 +43,7 @@ length += src_length; - char* new_string = (char*)realloc(*string, length); + new_string = (char*)realloc(*string, length); if (new_string == NULL) { result = __FAILURE__;