[sr-dev] git:master:adccefff: lost: fixed 'for' loop initial declaration in utilities.c
Wolfgang Kampichler
dev at kampichler.info
Wed Jan 13 09:44:31 CET 2021
Module: kamailio
Branch: master
Commit: adccefff803f210f27df37108fdd260eb63ec1c7
URL: https://github.com/kamailio/kamailio/commit/adccefff803f210f27df37108fdd260eb63ec1c7
Author: Wolfgang Kampichler <dev at kampichler.info>
Committer: Wolfgang Kampichler <dev at kampichler.info>
Date: 2021-01-13T09:43:56+01:00
lost: fixed 'for' loop initial declaration in utilities.c
---
Modified: src/modules/lost/utilities.c
---
Diff: https://github.com/kamailio/kamailio/commit/adccefff803f210f27df37108fdd260eb63ec1c7.diff
Patch: https://github.com/kamailio/kamailio/commit/adccefff803f210f27df37108fdd260eb63ec1c7.patch
---
diff --git a/src/modules/lost/utilities.c b/src/modules/lost/utilities.c
index 257c0ee52b..fca503cbf6 100644
--- a/src/modules/lost/utilities.c
+++ b/src/modules/lost/utilities.c
@@ -629,6 +629,7 @@ p_geolist_t lost_new_geoheader_list(str hdr, int *items)
int count = 0;
int len = 0;
+ int i = 0;
p_geolist_t list = NULL;
p_geolist_t new = NULL;
@@ -637,7 +638,7 @@ p_geolist_t lost_new_geoheader_list(str hdr, int *items)
/* search the complete header field */
search = hdr.s;
- for(int i = 0; i < hdr.len; i++) {
+ for(i = 0; i < hdr.len; i++) {
/* check for cid content */
/* <cid:x> might be the shortest */
if(strlen(search) > 6) {
More information about the sr-dev
mailing list