mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 23:23:58 +00:00
LibCore: Fix unitialized struct member in to_address_in, found by Coverity
This commit is contained in:
parent
73ab030f88
commit
6fa76ed2e3
Notes:
sideshowbarker
2024-07-19 03:30:13 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/6fa76ed2e3b Pull-request: https://github.com/SerenityOS/serenity/pull/3184 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue