Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: httpheaders.c
- Revision:
- 25:8507bf644fdf
- Parent:
- 19:2e0811512ceb
diff -r 96ae4d5375ef -r 8507bf644fdf httpheaders.c --- a/httpheaders.c Thu Apr 06 14:12:06 2017 -0700 +++ b/httpheaders.c Fri Apr 21 14:51:10 2017 -0700 @@ -310,7 +310,7 @@ else { /*Codes_SRS_HTTP_HEADERS_02_004: [Otherwise HTTPHeaders_Clone shall clone the content of handle to a new handle.] */ - result = malloc(sizeof(HTTP_HEADERS_HANDLE_DATA)); + result = (HTTP_HEADERS_HANDLE_DATA*)malloc(sizeof(HTTP_HEADERS_HANDLE_DATA)); if (result == NULL) { /*Codes_SRS_HTTP_HEADERS_02_005: [If cloning fails for any reason, then HTTPHeaders_Clone shall return NULL.] */