diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-20 18:02:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-20 18:10:22 +0200 |
commit | c8c7db8c33099724481a565e93f960835aa04436 (patch) | |
tree | b3dc26d4e8f4f49497363746f4eb8f4e0af7b3ce /Libraries | |
parent | ce6ef543377504646b626b045dd9204b939eb04e (diff) | |
download | serenity-c8c7db8c33099724481a565e93f960835aa04436.zip |
LibC: Fix a warning when building LibC with -O2
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/arpa/inet.cpp | 2 |
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; |