summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-10-20 18:02:13 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-20 18:10:22 +0200
commitc8c7db8c33099724481a565e93f960835aa04436 (patch)
treeb3dc26d4e8f4f49497363746f4eb8f4e0af7b3ce /Libraries
parentce6ef543377504646b626b045dd9204b939eb04e (diff)
downloadserenity-c8c7db8c33099724481a565e93f960835aa04436.zip
LibC: Fix a warning when building LibC with -O2
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/arpa/inet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibC/arpa/inet.cpp b/Libraries/LibC/arpa/inet.cpp
index 89b01c1c63..3cf7cc48a4 100644
--- a/Libraries/LibC/arpa/inet.cpp
+++ b/Libraries/LibC/arpa/inet.cpp
@@ -76,7 +76,7 @@ int inet_pton(int af, const char* src, void* dst)
in_addr_t inet_addr(const char* str)
{
- in_addr_t tmp;
+ in_addr_t tmp {};
int rc = inet_pton(AF_INET, str, &tmp);
if (rc < 0)
return INADDR_NONE;