From 6600e738a3777c06db9fdb8770d5e38dba1fc9f9 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 18 Aug 2020 18:30:23 -0500 Subject: [PATCH] ipc: Fix loop conditions in loopback allocator --- src/xrt/ipc/ipc_client_compositor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/ipc/ipc_client_compositor.c b/src/xrt/ipc/ipc_client_compositor.c index f925fccd2..60dc19773 100644 --- a/src/xrt/ipc/ipc_client_compositor.c +++ b/src/xrt/ipc/ipc_client_compositor.c @@ -625,11 +625,11 @@ ipc_compositor_images_allocate(struct xrt_image_native_allocator *xina, uint32_t handle; 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; } - 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].size = 0; }