Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Athish Pranav D <[email protected]>
  • Loading branch information
Athishpranav2003 committed Aug 24, 2024
1 parent c021e35 commit d02a383
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/filter_parser/filter_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ static int configure(struct filter_parser_ctx *ctx,
struct mk_list *head;
struct flb_kv *kv;

ctx->key_name = NULL;
ctx->reserve_data = FLB_FALSE;
ctx->preserve_key = FLB_FALSE;
mk_list_init(&ctx->parsers);

if (flb_filter_config_map_set(f_ins, ctx) < 0) {
Expand Down Expand Up @@ -328,6 +325,7 @@ static int cb_parser_filter(const void *data, size_t bytes,
char *new_buf = NULL;
int new_size;
int ret;

ret = flb_msgpack_expand_map(out_buf, out_size,
append_arr, append_arr_len,
&new_buf, &new_size);
Expand Down

0 comments on commit d02a383

Please sign in to comment.