1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +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

@@ -91,7 +91,7 @@ static IP_Address _sockaddr2ip(struct sockaddr *p_addr) {
IP_Address IP_Unix::_resolve_hostname(const String &p_hostname, Type p_type) {
struct addrinfo hints;
struct addrinfo *result;
struct addrinfo *result = nullptr;
memset(&hints, 0, sizeof(struct addrinfo));
if (p_type == TYPE_IPV4) {