Init AtExitInfoBlock::fFirstUnused in the constructor. Probably fixes #6793.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39324 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-11-06 13:08:04 +00:00
parent e6cb8eb4c6
commit e5d4255933
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@ typedef SinglyLinkedList<AtExitInfo> AtExitInfoList;
struct AtExitInfoBlock : DoublyLinkedListLinkImpl<AtExitInfoBlock> { struct AtExitInfoBlock : DoublyLinkedListLinkImpl<AtExitInfoBlock> {
AtExitInfoBlock()
:
fFirstUnused(0)
{
}
bool IsEmpty() const bool IsEmpty() const
{ {
return fFirstUnused == ATEXIT_MAX && fFreeList.IsEmpty(); return fFirstUnused == ATEXIT_MAX && fFreeList.IsEmpty();