mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.0502
Problem: Coverity complains about possible NULL pointer.
Solution: Add an assert(), let's see if this works on all systems.
a37ffaa5e0
This commit is contained in:
parent
41bffeacff
commit
830b31683e
@ -3167,6 +3167,7 @@ void close_tabpage(tabpage_T *tab)
|
||||
ptp = ptp->tp_next) {
|
||||
// do nothing
|
||||
}
|
||||
assert(ptp != NULL);
|
||||
ptp->tp_next = tab->tp_next;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user