Skip to content

Commit

Permalink
in_exec: use flb_calloc to fill NULL (#5715)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Jul 23, 2022
1 parent 53f2e45 commit 9254d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_exec/in_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int in_exec_init(struct flb_input_instance *in,
int ret = -1;

/* Allocate space for the configuration */
ctx = flb_malloc(sizeof(struct flb_exec));
ctx = flb_calloc(1, sizeof(struct flb_exec));
if (!ctx) {
return -1;
}
Expand Down

0 comments on commit 9254d4a

Please sign in to comment.