fixed vars with the same name

This commit is contained in:
gilteixeira 2023-04-18 19:25:21 +01:00
parent f2a7b4ad10
commit 9466f7e920
1 changed files with 6 additions and 6 deletions

View File

@ -213,9 +213,9 @@ static int evrsrm_pre_reservation_response(uint8_t *evrsrm_oer, uint32_t *evrsrm
evrsr_response->messageBody.present = EV_RSR_MessageBody_PR_preReservationResponseMessage; evrsr_response->messageBody.present = EV_RSR_MessageBody_PR_preReservationResponseMessage;
PreReservationResponseMessage_t response = evrsr_response->messageBody.choice.preReservationResponseMessage; PreReservationResponseMessage_t response = evrsr_response->messageBody.choice.preReservationResponseMessage;
char *pre_reservation_id = calloc(1, sizeof(char) * 10); char *pre_reservation_id_s = calloc(1, sizeof(char) * 10);
sprintf(pre_reservation_id, "%d", pre_reservation_id); sprintf(pre_reservation_id_s, "%d", pre_reservation_id);
response.preReservation_ID = *create_utf8_from_string(pre_reservation_id, strlen(pre_reservation_id)); response.preReservation_ID = *create_utf8_from_string(pre_reservation_id_s, strlen(pre_reservation_id_s));
response.availabilityStatus = 0; response.availabilityStatus = 0;