Browse Source

IPv4: Default initialize IPv4Address to 0.0.0.0.

IPv4Address() didn't initialize which made for some confusing debugging.
Andreas Kling 6 years ago
parent
commit
090e14d42c
1 changed files with 1 additions and 1 deletions
  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 };
     };
 };