Module: kamailio
Branch: master
Commit: aef9cec329893f58b0c7df5aec2050b6c3cecc60
URL:
https://github.com/kamailio/kamailio/commit/aef9cec329893f58b0c7df5aec2050b…
Author: Morten Tryfoss <morten(a)tryfoss.no>
Committer: Morten Tryfoss <morten(a)tryfoss.no>
Date: 2024-01-04T13:26:26+01:00
core: avoid C99 error
---
Modified: src/core/parser/parse_diversion.c
---
Diff:
https://github.com/kamailio/kamailio/commit/aef9cec329893f58b0c7df5aec2050b…
Patch:
https://github.com/kamailio/kamailio/commit/aef9cec329893f58b0c7df5aec2050b…
---
diff --git a/src/core/parser/parse_diversion.c b/src/core/parser/parse_diversion.c
index d60d0cbdd1f..92690296935 100644
--- a/src/core/parser/parse_diversion.c
+++ b/src/core/parser/parse_diversion.c
@@ -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]));