refactor: maybe suppress a PVS warning

This commit is contained in:
zeertzjq 2022-11-23 20:03:06 +08:00
parent 65d95fa415
commit 27fceca501

View File

@ -5390,6 +5390,7 @@ static int check_window_scroll_resize(int *size_count, win_T **first_scroll_win,
// tv_list_set_item(winlist, listidx++, &tv); // tv_list_set_item(winlist, listidx++, &tv);
tv_list_append_owned_tv(winlist, tv); tv_list_append_owned_tv(winlist, tv);
} else if (size_count != NULL) { } else if (size_count != NULL) {
assert(first_size_win != NULL && first_scroll_win != NULL);
(*size_count)++; (*size_count)++;
if (*first_size_win == NULL) { if (*first_size_win == NULL) {
*first_size_win = wp; *first_size_win = wp;