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:
parent
ce6ef54337
commit
c8c7db8c33
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue