mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05: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:
@@ -127,7 +127,7 @@ class ResourceFormatSaverBinaryInstance {
|
||||
bool skip_editor;
|
||||
bool big_endian;
|
||||
bool takeover_paths;
|
||||
FileAccess *f;
|
||||
FileAccess *f = nullptr;
|
||||
String magic;
|
||||
Set<RES> resource_set;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user