Skip to content

Commit

Permalink
in_system: init last_tag to fix valgrind warning
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Apr 23, 2023
1 parent 840d526 commit 8a8fbcf
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 8a8fbcf

Please sign in to comment.