You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +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:
@@ -144,7 +144,7 @@ public:
|
||||
void set_max_redirects(int p_max);
|
||||
int get_max_redirects() const;
|
||||
|
||||
Timer *timer;
|
||||
Timer *timer = nullptr;
|
||||
|
||||
void set_timeout(double p_timeout);
|
||||
double get_timeout();
|
||||
|
||||
Reference in New Issue
Block a user