diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-12-26 08:17:54 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-12-26 08:17:54 -0500 |
commit | 4840f59272bf7f312e6966b6562688ab7d5232f8 (patch) | |
tree | 78ffb5579c606b54041d2b08cc9e13dbc7dfe05c /src | |
parent | e241b0ba09941c2d9fa2be1cb75674be2b1de4eb (diff) | |
parent | ce03171323816c27737a2124f7f93a4dbfe2f48d (diff) | |
download | rneovim-4840f59272bf7f312e6966b6562688ab7d5232f8.tar.gz rneovim-4840f59272bf7f312e6966b6562688ab7d5232f8.tar.bz2 rneovim-4840f59272bf7f312e6966b6562688ab7d5232f8.zip |
Merge pull request #1741 from oni-link/fix_cid_90712
coverity/90712: Remove unnecessary check for NULL.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/getchar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 39227cc199..d0eebf8fea 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -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) |