mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 17:54:10 +00:00
window: Silence clang-analyzer null dereference error (#5032)
This commit is contained in:
committed by
Justin M. Keyes
parent
dcbd1c7b13
commit
335be4272e
@@ -3296,8 +3296,11 @@ void tabpage_move(int nr)
|
||||
tabpage_T *tp;
|
||||
tabpage_T *tp_dst;
|
||||
|
||||
if (first_tabpage->tp_next == NULL)
|
||||
assert(curtab != NULL);
|
||||
|
||||
if (first_tabpage->tp_next == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (tp = first_tabpage; tp->tp_next != NULL && n < nr; tp = tp->tp_next) {
|
||||
++n;
|
||||
|
||||
Reference in New Issue
Block a user