From 8a8fbcf22bb169d8e966722e69d4b6ff421aab1a Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 23 Apr 2023 11:01:04 +0900 Subject: [PATCH] in_system: init last_tag to fix valgrind warning Signed-off-by: Takahiro Yamashita --- plugins/in_systemd/systemd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_systemd/systemd.c b/plugins/in_systemd/systemd.c index fbb2293fdf9..02f81144b78 100644 --- a/plugins/in_systemd/systemd.c +++ b/plugins/in_systemd/systemd.c @@ -94,7 +94,7 @@ static int in_systemd_collect(struct flb_input_instance *ins, #endif char *tag = NULL; char new_tag[PATH_MAX]; - char last_tag[PATH_MAX]; + char last_tag[PATH_MAX] = {0}; size_t tag_len; size_t last_tag_len = 0; const void *data;