0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.0645: Coverity warns for possible use of NULL pointer

Problem:    Coverity warns for possible use of NULL pointer.
Solution:   Check return value of vterm_obtain_screen().
This commit is contained in:
Bram Moolenaar
2018-12-27 21:27:03 +01:00
parent 6436cd83f9
commit 06d6260323
2 changed files with 4 additions and 0 deletions

View File

@@ -5060,6 +5060,8 @@ f_term_scrape(typval_T *argvars, typval_T *rettv)
if (term->tl_vterm != NULL)
{
screen = vterm_obtain_screen(term->tl_vterm);
if (screen == NULL) // can't really happen
return;
p = NULL;
line = NULL;
}

View File

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