From 6bbed85899d16b063df41ffc2cbf314402ad73e6 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 20 Nov 2017 17:08:29 +0300 Subject: Fixing Coverity warnings. CID 200496 CID 200494 CID 200490 CID 200489 CID 200483 CID 200482 CID 200472 CID 200465 --- src/nxt_main_process.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nxt_main_process.c') diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 7d0050c4..767d6063 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -808,6 +808,9 @@ nxt_main_cleanup_worker_process(nxt_task_t *task, nxt_pid_t pid) buf = nxt_buf_mem_ts_alloc(task, task->thread->engine->mem_pool, sizeof(pid)); + + nxt_assert(buf != NULL); + buf->mem.free = nxt_cpymem(buf->mem.free, &pid, sizeof(pid)); nxt_port_socket_write(task, port, NXT_PORT_MSG_REMOVE_PID, -- cgit