mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 03:04:17 +01:00
network: initialize ip_addr in GetHostIPv4Address()
This commit is contained in:
parent
acca8aca8c
commit
765e97c347
@ -372,7 +372,7 @@ std::optional<IPv4Address> GetHostIPv4Address() {
|
||||
});
|
||||
|
||||
if (res != network_interfaces.end()) {
|
||||
char ip_addr[16];
|
||||
char ip_addr[16] = {};
|
||||
ASSERT(inet_ntop(AF_INET, &res->ip_address, ip_addr, sizeof(ip_addr)) != nullptr);
|
||||
LOG_INFO(Network, "IP address: {}", ip_addr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user