mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: Fix potential null-deref in events.
Found by clang-tidy
This commit is contained in:
parent
624fe8ab59
commit
dae90d4b42
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue