You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -63,7 +63,7 @@ class OS_LinuxBSD : public OS_Unix {
|
||||
|
||||
CrashHandler crash_handler;
|
||||
|
||||
MainLoop *main_loop;
|
||||
MainLoop *main_loop = nullptr;
|
||||
|
||||
protected:
|
||||
virtual void initialize() override;
|
||||
|
||||
Reference in New Issue
Block a user