Azure IoT common library
Fork of azure_c_shared_utility by
Diff: httpapiexsas.c
- Revision:
- 25:8507bf644fdf
- Parent:
- 19:2e0811512ceb
--- a/httpapiexsas.c Thu Apr 06 14:12:06 2017 -0700 +++ b/httpapiexsas.c Fri Apr 21 14:51:10 2017 -0700 @@ -43,7 +43,7 @@ else { /*Codes_SRS_HTTPAPIEXSAS_01_001: [ HTTPAPIEX_SAS_Create shall create a new instance of HTTPAPIEX_SAS and return a non-NULL handle to it. ]*/ - HTTPAPIEX_SAS_STATE* state = malloc(sizeof(HTTPAPIEX_SAS_STATE)); + HTTPAPIEX_SAS_STATE* state = (HTTPAPIEX_SAS_STATE*)malloc(sizeof(HTTPAPIEX_SAS_STATE)); /*Codes_SRS_HTTPAPIEXSAS_06_004: [If there are any other errors in the instantiation of this handle then HTTPAPIEX_SAS_Create shall return NULL.]*/ if (state != NULL) {