From e24d338194a5720dbc2268f659897eb9cffd34cc Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 20 May 2018 08:41:20 +0200 Subject: getchar.c: Fix PVS/V522: Dereference of null pointer mp_match --- src/nvim/getchar.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 07a65c2611..9a2ecbfbd8 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -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 -- cgit