From 8fb9f7f049474e4d9c80c0b25ad152bb937c2f86 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 1 Dec 2021 18:05:16 +0300 Subject: Fixing uninitialized structure field. Port's "data" field may be used by application and thus need to be set to NULL. The issue was introduced in the f8a0992944df commit. Found by Coverity (CID 374352). --- src/nxt_unit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_unit.c') diff --git a/src/nxt_unit.c b/src/nxt_unit.c index 57b89617..dac612b8 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -442,6 +442,7 @@ nxt_unit_init(nxt_unit_init_t *init) queue_fd = -1; mem = MAP_FAILED; shared_port.out_fd = -1; + shared_port.data = NULL; if (init->ready_port.id.pid != 0 && init->ready_stream != 0 -- cgit