st/oxr: Accept nonnull subactionPaths when countSubactionPaths is 0

It's not clear that this is forbidden, and it can make the caller's
life a little easier.
This commit is contained in:
Benjamin Saunders 2019-06-14 12:06:00 -07:00
parent 286a826ff7
commit 41ad2b872c

View file

@ -105,11 +105,6 @@ extern "C" {
#define OXR_VERIFY_SUBACTION_PATHS(log, count, paths) \
do { \
if (count == 0 && paths != NULL) { \
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
" " #count " is zero but " #paths \
" is not NULL"); \
} \
if (count > 0 && paths == NULL) { \
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \
" " #count " is not zero but " #paths \