summaryrefslogtreecommitdiffstats
path: root/src/core/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/network')
-rw-r--r--src/core/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp
index 9a4ac7e83..6571005d0 100644
--- a/src/core/network/network.cpp
+++ b/src/core/network/network.cpp
@@ -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);