Merge pull request #1741 from oni-link/fix_cid_90712

coverity/90712: Remove unnecessary check for NULL.
This commit is contained in:
Justin M. Keyes 2014-12-26 08:17:54 -05:00
commit 4840f59272

View File

@ -3645,10 +3645,8 @@ int check_abbr(int c, char_u *ptr, int col, int mincol)
if (vim_strbyte(mp->m_keys, K_SPECIAL) != NULL) {
/* might have CSI escaped mp->m_keys */
q = vim_strsave(mp->m_keys);
if (q != NULL) {
vim_unescape_csi(q);
qlen = (int)STRLEN(q);
}
vim_unescape_csi(q);
qlen = (int)STRLEN(q);
}
/* find entries with right mode and keys */
match = (mp->m_mode & State)