ソースを参照

lost: fixed 'for' loop initial declaration in utilities.c

Wolfgang Kampichler 4 年 前
コミット
adccefff80
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/modules/lost/utilities.c

+ 2 - 1
src/modules/lost/utilities.c

@@ -629,6 +629,7 @@ p_geolist_t lost_new_geoheader_list(str hdr, int *items)
 
 
 	int count = 0;
 	int count = 0;
 	int len = 0;
 	int len = 0;
+	int i = 0;
 
 
 	p_geolist_t list = NULL;
 	p_geolist_t list = NULL;
 	p_geolist_t new = 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 the complete header field */
 	search = hdr.s;
 	search = hdr.s;
-	for(int i = 0; i < hdr.len; i++) {
+	for(i = 0; i < hdr.len; i++) {
 		/* check for cid content */
 		/* check for cid content */
 		/* <cid:x> might be the shortest */
 		/* <cid:x> might be the shortest */
 		if(strlen(search) > 6) {
 		if(strlen(search) > 6) {