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:
parent
53317bbe14
commit
f8ab79e68a
258 changed files with 2398 additions and 2421 deletions
|
|
@ -52,7 +52,7 @@ private:
|
|||
#endif
|
||||
|
||||
#if defined(VULKAN_ENABLED)
|
||||
ANativeWindow *native_window;
|
||||
ANativeWindow *native_window = nullptr;
|
||||
#endif
|
||||
|
||||
mutable String data_dir_cache;
|
||||
|
|
@ -60,10 +60,10 @@ private:
|
|||
|
||||
AudioDriverOpenSL audio_driver_android;
|
||||
|
||||
MainLoop *main_loop;
|
||||
MainLoop *main_loop = nullptr;
|
||||
|
||||
GodotJavaWrapper *godot_java;
|
||||
GodotIOJavaWrapper *godot_io_java;
|
||||
GodotJavaWrapper *godot_java = nullptr;
|
||||
GodotIOJavaWrapper *godot_io_java = nullptr;
|
||||
|
||||
public:
|
||||
static const char *ANDROID_EXEC_PATH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue