浏览代码

IPv4: Default initialize IPv4Address to 0.0.0.0.

IPv4Address() didn't initialize which made for some confusing debugging.
Andreas Kling 6 年之前
父节点
当前提交
090e14d42c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Kernel/Net/IPv4.h

+ 1 - 1
Kernel/Net/IPv4.h

@@ -48,7 +48,7 @@ public:
 private:
     union {
         byte m_data[4];
-        dword m_data_as_dword;
+        dword m_data_as_dword { 0 };
     };
 };