mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-07 15:46:12 +00:00
ipc: initialize msg_control buffer
This commit is contained in:
parent
2b20ee1f12
commit
9a52e2384f
|
@ -188,7 +188,7 @@ ipc_send_fds(struct ipc_message_channel *imc,
|
||||||
assert(size != 0);
|
assert(size != 0);
|
||||||
assert(handles != NULL);
|
assert(handles != NULL);
|
||||||
assert(num_handles != 0);
|
assert(num_handles != 0);
|
||||||
union imcontrol_buf u;
|
union imcontrol_buf u = {0};
|
||||||
size_t cmsg_size = CMSG_SPACE(sizeof(int) * num_handles);
|
size_t cmsg_size = CMSG_SPACE(sizeof(int) * num_handles);
|
||||||
|
|
||||||
struct iovec iov = {0};
|
struct iovec iov = {0};
|
||||||
|
|
Loading…
Reference in a new issue