Skip to content

Commit 71fd847

Browse files
committed
input_log: fix variable declaration
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 1256bf8 commit 71fd847

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/flb_input_log.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ static int build_payload_for_route(struct flb_input_instance *ins,
328328
size_t record_count,
329329
uint8_t *matched_non_default)
330330
{
331-
size_t i;
331+
int i;
332+
int j;
332333
int ret;
333334
int condition_result;
334335
int matched;
@@ -427,7 +428,7 @@ static int build_payload_for_route(struct flb_input_instance *ins,
427428
flb_log_event_encoder_destroy(encoder);
428429
return -1;
429430
}
430-
for (size_t j = i + 1; j < record_count; j++) {
431+
for (j = i + 1; j < record_count; j++) {
431432
if (flb_log_event_decoder_get_record_type(&records[j]->event, &record_type) == 0 &&
432433
record_type == FLB_LOG_EVENT_GROUP_END &&
433434
records[j]->cobj_group_metadata == group_start_record->cobj_group_metadata) {

0 commit comments

Comments
 (0)