refactor(win_close): suppress clang "Dereference of NULL pointer"

This commit is contained in:
zeertzjq
2022-12-27 17:36:02 +08:00
committed by GitHub
parent 2542aa0b75
commit e951181d84

View File

@@ -2743,6 +2743,7 @@ int win_close(win_T *win, bool free_buf, bool force)
if (win->w_floating) {
ui_comp_remove_grid(&win->w_grid_alloc);
assert(first_tabpage != NULL); // suppress clang "Dereference of NULL pointer"
if (win->w_float_config.external) {
for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next) {
if (tp == curtab) {