mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +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);
|
||||
}
|
||||
|
||||
struct oxr_instance *inst;
|
||||
struct oxr_instance *inst = NULL;
|
||||
|
||||
ret = oxr_instance_create(&log, createInfo, &inst);
|
||||
if (ret != XR_SUCCESS) {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue