From 80edc422a3bf52d5fe325e6ba5effd7f15e487e0 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Thu, 14 Jul 2022 21:54:24 +0900 Subject: [PATCH] in_exec: use flb_calloc to fill NULL (#5715) Signed-off-by: Takahiro Yamashita --- plugins/in_exec/in_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_exec/in_exec.c b/plugins/in_exec/in_exec.c index 5cb8f629af3..e0cbac1f5a3 100644 --- a/plugins/in_exec/in_exec.c +++ b/plugins/in_exec/in_exec.c @@ -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; }