diff --git a/src/xrt/state_trackers/oxr/oxr_api_instance.c b/src/xrt/state_trackers/oxr/oxr_api_instance.c index bf65c8b9b..2d3cfebc7 100644 --- a/src/xrt/state_trackers/oxr/oxr_api_instance.c +++ b/src/xrt/state_trackers/oxr/oxr_api_instance.c @@ -101,7 +101,7 @@ oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo, i); } - struct oxr_instance *inst; + struct oxr_instance *inst = NULL; ret = oxr_instance_create(&log, createInfo, &inst); if (ret != XR_SUCCESS) { diff --git a/src/xrt/state_trackers/oxr/oxr_api_space.c b/src/xrt/state_trackers/oxr/oxr_api_space.c index b33959d1e..be1a5699b 100644 --- a/src/xrt/state_trackers/oxr/oxr_api_space.c +++ b/src/xrt/state_trackers/oxr/oxr_api_space.c @@ -95,7 +95,7 @@ oxr_xrCreateReferenceSpace(XrSession session, { XrResult ret; struct oxr_session *sess; - struct oxr_space *spc; + struct oxr_space *spc = NULL; struct oxr_logger log; OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrCreateReferenceSpace");