Skip to content

Commit

Permalink
in_systemd: init last_tag to fix valgrind warning (#7247)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored Sep 23, 2023
1 parent b708369 commit 63f1578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_systemd/systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63f1578

Please sign in to comment.