1
0
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:
Rafał Mikrut
2020-11-23 17:38:46 +01:00
parent 18023cc3ed
commit 7bd03b7188
34 changed files with 221 additions and 228 deletions

View File

@@ -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