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:
Justin M. Keyes 2017-03-22 13:06:29 +01:00
parent 41bffeacff
commit 830b31683e

View File

@ -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;
}