You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Initialize class/struct variables with default values in core/ and drivers/
This commit is contained in:
@@ -46,16 +46,16 @@ class DirAccessWindows : public DirAccess {
|
||||
MAX_DRIVES = 26
|
||||
};
|
||||
|
||||
DirAccessWindowsPrivate *p;
|
||||
DirAccessWindowsPrivate *p = nullptr;
|
||||
/* Windows stuff */
|
||||
|
||||
char drives[MAX_DRIVES]; // a-z:
|
||||
int drive_count;
|
||||
char drives[MAX_DRIVES] = { 0 }; // a-z:
|
||||
int drive_count = 0;
|
||||
|
||||
String current_dir;
|
||||
|
||||
bool _cisdir;
|
||||
bool _cishidden;
|
||||
bool _cisdir = false;
|
||||
bool _cishidden = false;
|
||||
|
||||
public:
|
||||
virtual Error list_dir_begin(); ///< This starts dir listing
|
||||
|
||||
Reference in New Issue
Block a user