Cursor::DeleteMatch check and clang fix

This commit is contained in:
disinvite 2023-11-12 19:19:29 -05:00
parent 6c914e0700
commit ecc1d6e5f9

View File

@ -122,6 +122,8 @@ void MxHashTableCursor<T>::DeleteMatch()
{ {
// Cut the matching node out of the linked list // Cut the matching node out of the linked list
// by updating pointer references. // by updating pointer references.
if (m_match == NULL)
return;
if (m_match->m_prev) { if (m_match->m_prev) {
m_match->m_prev->m_next = m_match->m_next; m_match->m_prev->m_next = m_match->m_next;