Browse Source

LibJS: Explicitly initialize primitive IndexedPropertyIterator members

Andreas Kling 3 years ago
parent
commit
2518f2045e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Userland/Libraries/LibJS/Runtime/IndexedProperties.h

+ 2 - 2
Userland/Libraries/LibJS/Runtime/IndexedProperties.h

@@ -107,8 +107,8 @@ private:
 
 
     const IndexedProperties& m_indexed_properties;
     const IndexedProperties& m_indexed_properties;
     Vector<u32> m_cached_indices;
     Vector<u32> m_cached_indices;
-    u32 m_index;
-    bool m_skip_empty;
+    u32 m_index { 0 };
+    bool m_skip_empty { false };
 };
 };
 
 
 class IndexedProperties {
 class IndexedProperties {