mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03: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:
@@ -38,7 +38,7 @@
|
||||
#include "core/variant/callable.h"
|
||||
|
||||
class CallableCustomMethodPointerBase : public CallableCustom {
|
||||
uint32_t *comp_ptr;
|
||||
uint32_t *comp_ptr = nullptr;
|
||||
uint32_t comp_size;
|
||||
uint32_t h;
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user