From cf3a3375479aece0a2425f47173f293188844e09 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 9 May 2020 19:37:10 +0100 Subject: [PATCH] ipc: Be paranoid about tracking origins --- src/xrt/ipc/ipc_server_process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrt/ipc/ipc_server_process.c b/src/xrt/ipc/ipc_server_process.c index 8f9dad249..8607cf941 100644 --- a/src/xrt/ipc/ipc_server_process.c +++ b/src/xrt/ipc/ipc_server_process.c @@ -97,6 +97,7 @@ init_tracking_origins(struct ipc_server *s) struct xrt_device *xdev = s->xdevs[i]; struct xrt_tracking_origin *xtrack = xdev->tracking_origin; + assert(xtrack != NULL); size_t index = 0; for (; index < IPC_SERVER_NUM_XDEVS; index++) {