0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -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:
Bram Moolenaar 2017-03-21 21:58:00 +01:00
parent b2964f2570
commit a37ffaa5e0
2 changed files with 3 additions and 0 deletions

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
502,
/**/
501,
/**/

View File

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