mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-21 06:01:43 +00:00
ipc: Fix loop conditions in loopback allocator
This commit is contained in:
parent
521de8ecfd
commit
6600e738a3
|
@ -625,11 +625,11 @@ ipc_compositor_images_allocate(struct xrt_image_native_allocator *xina,
|
||||||
uint32_t handle;
|
uint32_t handle;
|
||||||
uint64_t size;
|
uint64_t size;
|
||||||
|
|
||||||
for (size_t i = 0; ARRAY_SIZE(remote_fds); i++) {
|
for (size_t i = 0; i < ARRAY_SIZE(remote_fds); i++) {
|
||||||
remote_fds[i] = -1;
|
remote_fds[i] = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; in_num_images; i++) {
|
for (size_t i = 0; i < in_num_images; i++) {
|
||||||
out_images[i].fd = -1;
|
out_images[i].fd = -1;
|
||||||
out_images[i].size = 0;
|
out_images[i].size = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue