Commit 164ecf76 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

As always, fix compilation with Visual Studio because of variable not declared...

As always, fix compilation with Visual Studio because of variable not declared at the beginning of a block...
parent fa1c112c
...@@ -292,10 +292,10 @@ static int belle_sip_multipart_body_handler_send_chunk(belle_sip_body_handler_t ...@@ -292,10 +292,10 @@ static int belle_sip_multipart_body_handler_send_chunk(belle_sip_body_handler_t
if (obj_multipart->parts->data) { /* we have a part, get its content from handler */ if (obj_multipart->parts->data) { /* we have a part, get its content from handler */
int retval = BELLE_SIP_STOP; int retval = BELLE_SIP_STOP;
size_t offsetSize = 0; /* used to store size of data added by this function and not given by the body handler of current part */
belle_sip_body_handler_t *current_part = (belle_sip_body_handler_t *)obj_multipart->parts->data; belle_sip_body_handler_t *current_part = (belle_sip_body_handler_t *)obj_multipart->parts->data;
*size -= strlen(MULTIPART_END); /* just in case it will be the end of the message, ask for less characters than possible in order to be able to add the multipart message termination */ *size -= strlen(MULTIPART_END); /* just in case it will be the end of the message, ask for less characters than possible in order to be able to add the multipart message termination */
size_t offsetSize = 0; /* used to store size of data added by this function and not given by the body handler of current part */
if (current_part->transfered_size == 0) { /* Nothing transfered yet on this part, include a separator and the header if exists */ if (current_part->transfered_size == 0) { /* Nothing transfered yet on this part, include a separator and the header if exists */
/* separator */ /* separator */
offsetSize = strlen(MULTIPART_SEPARATOR); offsetSize = strlen(MULTIPART_SEPARATOR);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment