You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Zero initialize all pointer class and struct members
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
This commit is contained in:
@@ -43,7 +43,7 @@ class OpenXRAPI;
|
||||
|
||||
class OpenXRExtensionWrapper {
|
||||
protected:
|
||||
OpenXRAPI *openxr_api;
|
||||
OpenXRAPI *openxr_api = nullptr;
|
||||
|
||||
// Store extension we require.
|
||||
// If bool pointer is a nullptr this means this extension is mandatory and initialisation will fail if it is not available
|
||||
|
||||
Reference in New Issue
Block a user