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