Skip to content

Commit

Permalink
filter_log_to_metrics: fix compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jul 16, 2024
1 parent 47e5237 commit 94f0de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/filter_log_to_metrics/log_to_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,9 @@ static int cb_log_to_metrics_init(struct flb_filter_instance *f_ins,
}

tmp = (char *) flb_filter_get_property("emitter_name", f_ins);
// If emitter_name is not set, use the default name
/* If emitter_name is not set, use the default name */
if (tmp == NULL) {
tmp = flb_filter_name(f_ins);
tmp = (char *) flb_filter_name(f_ins);
ctx->emitter_name = flb_sds_create_size(64);
ctx->emitter_name = flb_sds_printf(&ctx->emitter_name, "emitter_for_%s", tmp);
}
Expand Down

0 comments on commit 94f0de1

Please sign in to comment.