Skip to content

Commit a37ffaa

Browse files
committed
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.
1 parent b2964f2 commit a37ffaa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
502,
767769
/**/
768770
501,
769771
/**/

src/window.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,6 +3806,7 @@ close_tabpage(tabpage_T *tab)
38063806
for (ptp = first_tabpage; ptp != NULL && ptp->tp_next != tab;
38073807
ptp = ptp->tp_next)
38083808
;
3809+
assert(ptp != NULL);
38093810
ptp->tp_next = tab->tp_next;
38103811
}
38113812

0 commit comments

Comments
 (0)