diff --git a/plugins/in_stdin/in_stdin.c b/plugins/in_stdin/in_stdin.c index 427aacd8d21..692e54a3c53 100644 --- a/plugins/in_stdin/in_stdin.c +++ b/plugins/in_stdin/in_stdin.c @@ -279,6 +279,7 @@ static int in_stdin_init(struct flb_input_instance *in, if (!ctx) { return -1; } + memset(ctx, 0, sizeof(struct flb_in_stdin_config)); /* Initialize stdin config */ ret = in_stdin_config_init(ctx, in, config);