mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V560: condition is always true #10624
* before changed line status variable is set to RA_FAIL in 2 places line 3816 and 3826, both lead to short-circuit of the loop, making comparing it to RA_FAIL useless close #10624
This commit is contained in:
parent
5b47ee5b7a
commit
ce59a70f5b
@ -4323,9 +4323,11 @@ static int regmatch(
|
||||
/* Still at same position as last time, fail. */
|
||||
status = RA_NOMATCH;
|
||||
|
||||
if (status != RA_FAIL && status != RA_NOMATCH)
|
||||
assert(status != RA_FAIL);
|
||||
if (status != RA_NOMATCH) {
|
||||
reg_save(&bp[i].bp_pos, &backpos);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case MOPEN + 0: /* Match start: \zs */
|
||||
|
Loading…
Reference in New Issue
Block a user