mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-07 15:46:12 +00:00
st/oxr: Fix some warnings by initializing variables.
This commit is contained in:
parent
525f9c09f2
commit
3624c17754
|
@ -101,7 +101,7 @@ oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo,
|
||||||
i);
|
i);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct oxr_instance *inst;
|
struct oxr_instance *inst = NULL;
|
||||||
|
|
||||||
ret = oxr_instance_create(&log, createInfo, &inst);
|
ret = oxr_instance_create(&log, createInfo, &inst);
|
||||||
if (ret != XR_SUCCESS) {
|
if (ret != XR_SUCCESS) {
|
||||||
|
|
|
@ -95,7 +95,7 @@ oxr_xrCreateReferenceSpace(XrSession session,
|
||||||
{
|
{
|
||||||
XrResult ret;
|
XrResult ret;
|
||||||
struct oxr_session *sess;
|
struct oxr_session *sess;
|
||||||
struct oxr_space *spc;
|
struct oxr_space *spc = NULL;
|
||||||
struct oxr_logger log;
|
struct oxr_logger log;
|
||||||
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess,
|
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess,
|
||||||
"xrCreateReferenceSpace");
|
"xrCreateReferenceSpace");
|
||||||
|
|
Loading…
Reference in a new issue