mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
getchar.c: Fix PVS/V522: Dereference of null pointer mp_match
This commit is contained in:
@@ -1854,6 +1854,7 @@ static int vgetorpeek(int advance)
|
|||||||
}
|
}
|
||||||
} else if (keylen > mp_match_len
|
} else if (keylen > mp_match_len
|
||||||
|| (keylen == mp_match_len
|
|| (keylen == mp_match_len
|
||||||
|
&& mp_match != NULL
|
||||||
&& (mp_match->m_mode & LANGMAP) == 0
|
&& (mp_match->m_mode & LANGMAP) == 0
|
||||||
&& (mp->m_mode & LANGMAP) != 0)) {
|
&& (mp->m_mode & LANGMAP) != 0)) {
|
||||||
// found a longer match
|
// found a longer match
|
||||||
|
Reference in New Issue
Block a user