https://bugs.webkit.org/show_bug.cgi?id=169676
Reviewed by Michael Catanzaro.
Found by Coverity scan.
* wtf/Bag.h:
* wtf/HashTable.h:
* wtf/HashTraits.h:
* wtf/Insertion.h:
* wtf/OrderMaker.h:
* wtf/ParallelJobsGeneric.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214299
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-03-23 Tomas Popela <tpopela@redhat.com>
+
+ Fix uninitialized public members in WTF
+ https://bugs.webkit.org/show_bug.cgi?id=169676
+
+ Reviewed by Michael Catanzaro.
+
+ Found by Coverity scan.
+
+ * wtf/Bag.h:
+ * wtf/HashTable.h:
+ * wtf/HashTraits.h:
+ * wtf/Insertion.h:
+ * wtf/OrderMaker.h:
+ * wtf/ParallelJobsGeneric.h:
+
2017-03-22 Andreas Kling <akling@apple.com>
Let MemoryPressureHandler track whether the process is active or inactive.
}
T m_item;
- Node* m_next;
+ Node* m_next { nullptr };
};
public:
void checkValidity(const const_iterator&) const { }
#endif
- PointerType m_position;
- PointerType m_endPosition;
+ PointerType m_position { nullptr };
+ PointerType m_endPosition { nullptr };
#if CHECK_HASHTABLE_ITERATORS
public:
}
KeyTypeArg key;
- ValueTypeArg value;
+ ValueTypeArg value { };
};
template<typename KeyTraitsArg, typename ValueTraitsArg>
}
private:
- size_t m_index;
- T m_element;
+ size_t m_index { 0 };
+ T m_element { };
};
template<typename TargetVectorType, typename InsertionVectorType>
{
}
- T payload;
+ T payload { };
};
public:
mutable Lock m_mutex;
Condition m_threadCondition;
- ThreadFunction m_threadFunction;
- void* m_parameters;
+ ThreadFunction m_threadFunction { nullptr };
+ void* m_parameters { nullptr };
};
private: