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;