diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-28 05:08:41 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-28 11:08:41 +0200 |
commit | e0f2c36667725a23ec13de5564015094871f5aae (patch) | |
tree | a6229eeafbe70a1cd5099fe6053acaab766f4ddc | |
parent | ce59a70f5b02bb4e3417f5e55e2e77eeeb0c5a9d (diff) | |
download | rneovim-e0f2c36667725a23ec13de5564015094871f5aae.tar.gz rneovim-e0f2c36667725a23ec13de5564015094871f5aae.tar.bz2 rneovim-e0f2c36667725a23ec13de5564015094871f5aae.zip |
PVS/V560: condition is always true #10630
earlier condition leads to short-circuit of the loop
-rw-r--r-- | src/nvim/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 893a13b9f0..cc214616f4 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -4500,7 +4500,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so sp->ts_state = STATE_SWAP3; break; } - if (c2 != NUL && TRY_DEEPER(su, stack, depth, SCORE_SWAP)) { + if (TRY_DEEPER(su, stack, depth, SCORE_SWAP)) { go_deeper(stack, depth, SCORE_SWAP); #ifdef DEBUG_TRIEWALK snprintf(changename[depth], sizeof(changename[0]), |