Skip to content

Commit d02a383

Browse files
Code refactoring
Signed-off-by: Athish Pranav D <[email protected]>
1 parent c021e35 commit d02a383

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/filter_parser/filter_parser.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ static int configure(struct filter_parser_ctx *ctx,
102102
struct mk_list *head;
103103
struct flb_kv *kv;
104104

105-
ctx->key_name = NULL;
106-
ctx->reserve_data = FLB_FALSE;
107-
ctx->preserve_key = FLB_FALSE;
108105
mk_list_init(&ctx->parsers);
109106

110107
if (flb_filter_config_map_set(f_ins, ctx) < 0) {
@@ -328,6 +325,7 @@ static int cb_parser_filter(const void *data, size_t bytes,
328325
char *new_buf = NULL;
329326
int new_size;
330327
int ret;
328+
331329
ret = flb_msgpack_expand_map(out_buf, out_size,
332330
append_arr, append_arr_len,
333331
&new_buf, &new_size);

0 commit comments

Comments
 (0)