ipc: initialize msg_control buffer

This commit is contained in:
Christoph Haag 2020-08-05 18:38:18 +02:00 committed by Jakob Bornecrantz
parent 2b20ee1f12
commit 9a52e2384f

View file

@ -188,7 +188,7 @@ ipc_send_fds(struct ipc_message_channel *imc,
assert(size != 0);
assert(handles != NULL);
assert(num_handles != 0);
union imcontrol_buf u;
union imcontrol_buf u = {0};
size_t cmsg_size = CMSG_SPACE(sizeof(int) * num_handles);
struct iovec iov = {0};