Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Monado
Monado
Commits
dae90d4b
Commit
dae90d4b
authored
Aug 21, 2019
by
Ryan Pavlik
Browse files
st/oxr: Fix potential null-deref in events.
Found by clang-tidy
parent
624fe8ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/state_trackers/oxr/oxr_event.cpp
View file @
dae90d4b
...
...
@@ -81,6 +81,9 @@ push(struct oxr_instance *inst, struct oxr_event *event)
if (ret != XR_SUCCESS) { \
return ret; \
} \
if (event == NULL) { \
return XR_ERROR_RUNTIME_FAILURE; \
} \
*extra = (typeof(*extra))(*event)->ptr(); \
} while (false)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment