search: Fix PVS/V560: condition checked in previous if with goto

This commit is contained in:
ZyX
2018-04-22 19:47:45 +03:00
parent db1c9b625c
commit 2cdf9d1388

View File

@@ -3396,11 +3396,13 @@ again:
goto again; goto again;
} }
if (do_include || r < 1) { if (do_include) {
/* Include up to the '>'. */ // Include up to the '>'.
while (*get_cursor_pos_ptr() != '>') while (*get_cursor_pos_ptr() != '>') {
if (inc_cursor() < 0) if (inc_cursor() < 0) {
break; break;
}
}
} else { } else {
char_u *c = get_cursor_pos_ptr(); char_u *c = get_cursor_pos_ptr();
// Exclude the '<' of the end tag. // Exclude the '<' of the end tag.