From 570ba1ae888287a693c38b2b5d9ab1ecd21cd08c Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Mon, 22 Apr 2019 09:19:59 -0700 Subject: [PATCH] st/oxr: Initialize action act_set pointer Fixes a segfault in OXR_VERIFY_ACTION_AND_INIT_LOG --- src/xrt/state_trackers/oxr/oxr_api_action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrt/state_trackers/oxr/oxr_api_action.c b/src/xrt/state_trackers/oxr/oxr_api_action.c index eba67b3ff..5668c9bc7 100644 --- a/src/xrt/state_trackers/oxr/oxr_api_action.c +++ b/src/xrt/state_trackers/oxr/oxr_api_action.c @@ -199,6 +199,7 @@ oxr_xrCreateAction(XrActionSet actionSet, struct oxr_action* act = NULL; OXR_ALLOCATE_HANDLE_OR_RETURN(&log, act, OXR_XR_DEBUG_ACTION, oxr_action_destroy, &act_set->handle); + act->act_set = act_set; *action = (XrAction)act; return XR_SUCCESS;