1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00:00

LibC: Fix a warning when building LibC with -O2

This commit is contained in:
Andreas Kling 2020-10-20 18:02:13 +02:00
parent ce6ef54337
commit c8c7db8c33

View file

@ -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;