From e0f2c36667725a23ec13de5564015094871f5aae Mon Sep 17 00:00:00 2001 From: Ihor Antonov Date: Sun, 28 Jul 2019 05:08:41 -0400 Subject: PVS/V560: condition is always true #10630 earlier condition leads to short-circuit of the loop --- src/nvim/spell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]), -- cgit