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:
@@ -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;
|
||||
}
|
||||
|
@@ -799,6 +799,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
645,
|
||||
/**/
|
||||
644,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user