Skip to content

Commit

Permalink
core: avoid C99 error
Browse files Browse the repository at this point in the history
  • Loading branch information
mtryfoss committed Jan 4, 2024
1 parent f67bfe4 commit aef9cec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/parser/parse_diversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ int parse_diversion_header(struct sip_msg *msg)

int free_diversion_body(diversion_body_t *div_b)
{
for(int i = 0; i < div_b->num_ids; i++) {
int i = 0;
for(i = 0; i < div_b->num_ids; i++) {
/* Free to_body pointer parameters */
if(div_b->id[i].param_lst) {
free_to_params(&(div_b->id[i]));
Expand Down

0 comments on commit aef9cec

Please sign in to comment.