Browse code

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

Wolfgang Kampichler authored on 13/01/2021 08:43:56
Showing 1 changed files
... ...
@@ -629,6 +629,7 @@ p_geolist_t lost_new_geoheader_list(str hdr, int *items)
629 629
 
630 630
 	int count = 0;
631 631
 	int len = 0;
632
+	int i = 0;
632 633
 
633 634
 	p_geolist_t list = NULL;
634 635
 	p_geolist_t new = NULL;
... ...
@@ -637,7 +638,7 @@ p_geolist_t lost_new_geoheader_list(str hdr, int *items)
637 638
 
638 639
 	/* search the complete header field */
639 640
 	search = hdr.s;
640
-	for(int i = 0; i < hdr.len; i++) {
641
+	for(i = 0; i < hdr.len; i++) {
641 642
 		/* check for cid content */
642 643
 		/* <cid:x> might be the shortest */
643 644
 		if(strlen(search) > 6) {