Skip to content

Commit

Permalink
output_thread: added event memory intialization (#7303)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
  • Loading branch information
leonardo-albertovich committed May 3, 2023
1 parent 06ee7d3 commit 9a08168
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flb_output_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ static void output_thread(void *data)
snprintf(tmp, sizeof(tmp) - 1, "flb-out-%s-w%i", ins->name, thread_id);
mk_utils_worker_rename(tmp);

memset(&event_local, 0, sizeof(struct mk_event));

/* Channel used by flush callbacks to notify it return status */
ret = mk_event_channel_create(th_ins->evl,
&th_ins->ch_thread_events[0],
Expand Down

0 comments on commit 9a08168

Please sign in to comment.