summaryrefslogtreecommitdiffstats
path: root/spawn/spawn_client.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
commite970e0b37b8bd7f246feb3f70c4136418225e434 (patch)
tree0b67c0ca45f56f2f9d9c5c2e725279ecdf52d2eb /spawn/spawn_client.c
parentAdding upstream version 1.31.0. (diff)
downloadnetdata-e970e0b37b8bd7f246feb3f70c4136418225e434.tar.xz
netdata-e970e0b37b8bd7f246feb3f70c4136418225e434.zip
Adding upstream version 1.32.0.upstream/1.32.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'spawn/spawn_client.c')
-rw-r--r--spawn/spawn_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spawn/spawn_client.c b/spawn/spawn_client.c
index 83dc3c80..59f1ccb0 100644
--- a/spawn/spawn_client.c
+++ b/spawn/spawn_client.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "spawn.h"
-#include "../database/engine/rrdenginelib.h"
+#include "database/engine/rrdenginelib.h"
static uv_process_t process;
static uv_pipe_t spawn_channel;
@@ -139,7 +139,7 @@ static void spawn_process_cmd(struct spawn_cmd_info *cmdinfo)
uv_buf_t writebuf[3];
struct write_context *write_ctx;
- write_ctx = mallocz(sizeof(*write_ctx));
+ write_ctx = callocz(1, sizeof(*write_ctx));
write_ctx->write_req.data = write_ctx;
uv_mutex_lock(&cmdinfo->mutex);