mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 22:35:45 +00:00
network: initialize ip_addr in GetHostIPv4Address()
This commit is contained in:
parent
4e840ab505
commit
052fb4ec7e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue