summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-12-01 16:51:30 +0300
committerMax Romanov <max.romanov@nginx.com>2017-12-01 16:51:30 +0300
commitffb1c68609620824a88e0573e13f91ce0e810bf2 (patch)
treecd896d29ce5ab05ce41fd61092cd6857c6672a8a /src/go/unit
parent630ec3f1eca0543b2d10c409822ea4acb657c87c (diff)
downloadunit-ffb1c68609620824a88e0573e13f91ce0e810bf2.tar.gz
unit-ffb1c68609620824a88e0573e13f91ce0e810bf2.tar.bz2
Initializing port_msg fields with zeroes in Go package.
Diffstat (limited to 'src/go/unit')
-rw-r--r--src/go/unit/nxt_go_lib.c2
-rw-r--r--src/go/unit/nxt_go_port_memory.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/go/unit/nxt_go_lib.c b/src/go/unit/nxt_go_lib.c
index fe295692..71940461 100644
--- a/src/go/unit/nxt_go_lib.c
+++ b/src/go/unit/nxt_go_lib.c
@@ -178,6 +178,8 @@ nxt_go_ready()
port_msg.type = _NXT_PORT_MSG_PROCESS_READY;
port_msg.last = 1;
port_msg.mmap = 0;
+ port_msg.nf = 0;
+ port_msg.mf = 0;
nxt_go_main_send(&port_msg, sizeof(port_msg), NULL, 0);
}
diff --git a/src/go/unit/nxt_go_port_memory.c b/src/go/unit/nxt_go_port_memory.c
index 2e970347..2c183161 100644
--- a/src/go/unit/nxt_go_port_memory.c
+++ b/src/go/unit/nxt_go_port_memory.c
@@ -121,6 +121,8 @@ nxt_go_new_port_mmap(nxt_go_process_t *process, nxt_port_id_t id)
port_msg.type = _NXT_PORT_MSG_MMAP;
port_msg.last = 1;
port_msg.mmap = 0;
+ port_msg.nf = 0;
+ port_msg.mf = 0;
cmsg.cm.cmsg_len = CMSG_LEN(sizeof(int));
cmsg.cm.cmsg_level = SOL_SOCKET;