summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSönke Holz <sholz8530@gmail.com>2021-08-13 00:28:44 +0200
committerSönke Holz <sholz8530@gmail.com>2021-08-13 00:28:44 +0200
commit765e97c34765330e1f05ee1b5a9a58a43f9c8921 (patch)
tree62a1deab223203d639a3ceb93909406c2768b4d7
parentnifm: use operator*() instead of .value() to get value of std::optional (diff)
downloadyuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.tar
yuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.tar.gz
yuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.tar.bz2
yuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.tar.lz
yuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.tar.xz
yuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.tar.zst
yuzu-765e97c34765330e1f05ee1b5a9a58a43f9c8921.zip
-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);