in_exec: fix unitialized timestamp when a parser is used
@@ -60,6 +60,7 @@ static int in_exec_collect(struct flb_input_instance *i_ins,
str_len = strlen(buf);
buf[str_len-1] = '\0'; /* chomp */
+ flb_time_get(&out_time);
parser_ret = flb_parser_do(exec_config->parser, buf, str_len-1,
&out_buf, &out_size, &out_time);
if (parser_ret >= 0) {
@@ -213,7 +214,7 @@ static int in_exec_init(struct flb_input_instance *in,
return -1;
}
-int in_exec_exit(void *data, struct flb_config *config)
+static int in_exec_exit(void *data, struct flb_config *config)
{
(void) *config;
struct flb_in_exec_config *exec_config = data;
