initialize XrSystemProperties type
@@ -542,7 +542,9 @@ static void openxr_destroy(void) {
}
static bool openxr_getName(char* name, size_t length) {
- XrSystemProperties properties;
+ XrSystemProperties properties = {
+ .type = XR_TYPE_SYSTEM_PROPERTIES
+ };
XR(xrGetSystemProperties(state.instance, state.system, &properties));
strncpy(name, properties.systemName, length - 1);
name[length - 1] = '\0';
