mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibCore: Fix unitialized struct member in to_address_in, found by Coverity
This commit is contained in:
committed by
Andreas Kling
parent
73ab030f88
commit
6fa76ed2e3
@@ -95,7 +95,7 @@ public:
|
||||
sockaddr_in to_sockaddr_in() const
|
||||
{
|
||||
ASSERT(type() == Type::IPv4);
|
||||
sockaddr_in address;
|
||||
sockaddr_in address {};
|
||||
address.sin_family = AF_INET;
|
||||
address.sin_addr.s_addr = m_ipv4_address.to_in_addr_t();
|
||||
address.sin_port = htons(m_port);
|
||||
|
||||
Reference in New Issue
Block a user