1
0
forked from aniani/vim

patch 7.4.1507

Problem:    Crash when starting a job fails.
Solution:   Check for the channel to be NULL.  (idea by Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2016-03-07 15:24:03 +01:00
parent b69fccf377
commit 4e329fcaf7
2 changed files with 4 additions and 1 deletions

View File

@@ -15262,7 +15262,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv)
#ifdef FEAT_CHANNEL #ifdef FEAT_CHANNEL
/* If the channel is reading from a buffer, write lines now. */ /* If the channel is reading from a buffer, write lines now. */
channel_write_in(job->jv_channel); if (job->jv_channel != NULL)
channel_write_in(job->jv_channel);
#endif #endif
theend: theend:

View File

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