mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
parent
6491db6617
commit
09b132728c
1 changed files with 8 additions and 0 deletions
|
@ -1499,6 +1499,14 @@ void Dictionary::AdjustOnRemove(RobustDictIterator* c, const detail::DictEntry&
|
||||||
// if not already the end of the dictionary, adjust next to a valid one.
|
// if not already the end of the dictionary, adjust next to a valid one.
|
||||||
if ( c->next < Capacity() && table[c->next].Empty() )
|
if ( c->next < Capacity() && table[c->next].Empty() )
|
||||||
c->next = Next(c->next);
|
c->next = Next(c->next);
|
||||||
|
|
||||||
|
if ( c->curr == entry )
|
||||||
|
{
|
||||||
|
if ( c->next >= 0 && c->next < Capacity() && ! table[c->next].Empty() )
|
||||||
|
c->curr = table[c->next];
|
||||||
|
else
|
||||||
|
c->curr = detail::DictEntry(nullptr); // -> c == end_robust()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue