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:
@@ -15262,6 +15262,7 @@ 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. */
|
||||||
|
if (job->jv_channel != NULL)
|
||||||
channel_write_in(job->jv_channel);
|
channel_write_in(job->jv_channel);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user