From adccefff803f210f27df37108fdd260eb63ec1c7 Mon Sep 17 00:00:00 2001 From: Wolfgang Kampichler Date: Wed, 13 Jan 2021 09:43:56 +0100 Subject: [PATCH] lost: fixed 'for' loop initial declaration in utilities.c --- src/modules/lost/utilities.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/lost/utilities.c b/src/modules/lost/utilities.c index 257c0ee52b4..fca503cbf65 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 */ /* might be the shortest */ if(strlen(search) > 6) {