Permalink
Browse files

patch 8.0.0853: crash when running terminal with unknown command

Problem:    Crash when running terminal with unknown command.
Solution:   Check "term" not to be NULL. (Yasuhiro Matsumoto, closes #1932)
  • Loading branch information...
brammool committed Aug 3, 2017
1 parent 1b66c00 commit b4a6721a288438c96fbeb051b09ef90735ac70d6
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/terminal.c
  2. +2 −0 src/version.c
View
@@ -629,7 +629,8 @@ term_job_running(term_T *term)
{
/* Also consider the job finished when the channel is closed, to avoid a
* race condition when updating the title. */
return term->tl_job != NULL
return term != NULL
&& term->tl_job != NULL
&& term->tl_job->jv_status == JOB_STARTED
&& channel_is_open(term->tl_job->jv_channel);
}
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
853,
/**/
852,
/**/

0 comments on commit b4a6721

Please sign in to comment.