comparison src/terminal.c @ 15273:19272aa12962 v8.1.0645

patch 8.1.0645: Coverity warns for possible use of NULL pointer commit https://github.com/vim/vim/commit/06d626032330dc79825004f9cba7d154c9c90cbc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 27 21:27:03 2018 +0100 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().
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Dec 2018 21:30:06 +0100
parents 544490b69e1d
children 73b153ed5af8
comparison
equal deleted inserted replaced
15272:0cbbf3874dd4 15273:19272aa12962
5058 pos.row = get_row_number(&argvars[1], term); 5058 pos.row = get_row_number(&argvars[1], term);
5059 5059
5060 if (term->tl_vterm != NULL) 5060 if (term->tl_vterm != NULL)
5061 { 5061 {
5062 screen = vterm_obtain_screen(term->tl_vterm); 5062 screen = vterm_obtain_screen(term->tl_vterm);
5063 if (screen == NULL) // can't really happen
5064 return;
5063 p = NULL; 5065 p = NULL;
5064 line = NULL; 5066 line = NULL;
5065 } 5067 }
5066 else 5068 else
5067 { 5069 {