Fixing Coverity warnings.

CID 200496
CID 200494
CID 200490
CID 200489
CID 200483
CID 200482
CID 200472
CID 200465
This commit is contained in:
Max Romanov
2017-11-20 17:08:29 +03:00
parent fa76ea700f
commit 6bbed85899
7 changed files with 23 additions and 10 deletions

View File

@@ -311,10 +311,9 @@ nxt_port_process_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
process->ready = 1;
nxt_assert(nxt_queue_is_empty(&process->ports) == 0);
port = nxt_process_port_first(process);
if (nxt_slow_path(port == NULL)) {
return;
}
nxt_debug(task, "process %PI ready", msg->port_msg.pid);
@@ -348,7 +347,7 @@ nxt_port_mmap_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
fail_close:
close(msg->fd);
nxt_fd_close(msg->fd);
}