mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibCore: Fix unitialized struct member in to_address_in, found by Coverity
This commit is contained in:
parent
73ab030f88
commit
6fa76ed2e3
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ public:
|
||||||
sockaddr_in to_sockaddr_in() const
|
sockaddr_in to_sockaddr_in() const
|
||||||
{
|
{
|
||||||
ASSERT(type() == Type::IPv4);
|
ASSERT(type() == Type::IPv4);
|
||||||
sockaddr_in address;
|
sockaddr_in address {};
|
||||||
address.sin_family = AF_INET;
|
address.sin_family = AF_INET;
|
||||||
address.sin_addr.s_addr = m_ipv4_address.to_in_addr_t();
|
address.sin_addr.s_addr = m_ipv4_address.to_in_addr_t();
|
||||||
address.sin_port = htons(m_port);
|
address.sin_port = htons(m_port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue