st/oxr: Fix some warnings by initializing variables.

This commit is contained in:
Ryan Pavlik 2020-05-19 17:33:50 -05:00
parent 525f9c09f2
commit 3624c17754
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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");