Forráskód Böngészése

IPv4: Default initialize IPv4Address to 0.0.0.0.

IPv4Address() didn't initialize which made for some confusing debugging.
Andreas Kling 6 éve
szülő
commit
090e14d42c
1 módosított fájl, 1 hozzáadás és 1 törlés
  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 };
     };
 };