From 63f1578b3501bf469a68900771c125d8d1dd98de Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 24 Sep 2023 03:08:21 +0900 Subject: [PATCH] in_systemd: init last_tag to fix valgrind warning (#7247) 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;