mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.0502: Coverity complains about possible NULL pointer
Problem: Coverity complains about possible NULL pointer. Solution: Add an assert(), let's see if this works on all systems.
This commit is contained in:
@@ -3806,6 +3806,7 @@ close_tabpage(tabpage_T *tab)
|
||||
for (ptp = first_tabpage; ptp != NULL && ptp->tp_next != tab;
|
||||
ptp = ptp->tp_next)
|
||||
;
|
||||
assert(ptp != NULL);
|
||||
ptp->tp_next = tab->tp_next;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user