Skip to content

Commit 7eb7dcb

Browse files
DavidKorczynskiedsiper
authored andcommitted
parser: declare loop index
Signed-off-by: David Korczynski <[email protected]>
1 parent 850ffa0 commit 7eb7dcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/flb_parser.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ static flb_sds_t get_parser_key(struct flb_config *config,
455455
static int parser_conf_file(const char *cfg, struct flb_cf *cf,
456456
struct flb_config *config)
457457
{
458+
int i = 0;
458459
flb_sds_t name;
459460
flb_sds_t format;
460461
flb_sds_t regex;
@@ -605,7 +606,7 @@ static int parser_conf_file(const char *cfg, struct flb_cf *cf,
605606
flb_sds_destroy(types_str);
606607
}
607608
if (types_len) {
608-
for (int i=0; i<types_len; i++){
609+
for (i=0; i<types_len; i++){
609610
if (types[i].key != NULL) {
610611
flb_free(types[i].key);
611612
}

0 commit comments

Comments
 (0)