summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-08-06 22:58:32 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-08-06 15:06:20 +0200
commitda615e46cdfb6a7a563dd47f6adc61303365eb84 (patch)
treeacf89ae1e8911f9f0c9065bf4d455c5e0edcf632
parent6f75d96689386d66d8564f1fb3d9d0b8d696bc30 (diff)
downloadserenity-da615e46cdfb6a7a563dd47f6adc61303365eb84.zip
LibCore: Initialise m_port as zero in CSocketAddress
-rw-r--r--Libraries/LibCore/CSocketAddress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibCore/CSocketAddress.h b/Libraries/LibCore/CSocketAddress.h
index 07dcf1fb8f..23ac098cad 100644
--- a/Libraries/LibCore/CSocketAddress.h
+++ b/Libraries/LibCore/CSocketAddress.h
@@ -75,7 +75,7 @@ public:
private:
Type m_type { Type::Invalid };
IPv4Address m_ipv4_address;
- u16 m_port;
+ u16 m_port { 0 };
String m_local_address;
};