Skip to content

Commit da615e4

Browse files
deoxxaawesomekling
authored andcommitted
LibCore: Initialise m_port as zero in CSocketAddress
1 parent 6f75d96 commit da615e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/LibCore/CSocketAddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class CSocketAddress {
7575
private:
7676
Type m_type { Type::Invalid };
7777
IPv4Address m_ipv4_address;
78-
u16 m_port;
78+
u16 m_port { 0 };
7979
String m_local_address;
8080
};
8181

0 commit comments

Comments
 (0)