Skip to content

Commit 4e329fc

Browse files
committed
patch 7.4.1507
Problem: Crash when starting a job fails. Solution: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto)
1 parent b69fccf commit 4e329fc

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/eval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15262,7 +15262,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv)
1526215262

1526315263
#ifdef FEAT_CHANNEL
1526415264
/* If the channel is reading from a buffer, write lines now. */
15265-
channel_write_in(job->jv_channel);
15265+
if (job->jv_channel != NULL)
15266+
channel_write_in(job->jv_channel);
1526615267
#endif
1526715268

1526815269
theend:

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1507,
746748
/**/
747749
1506,
748750
/**/

0 commit comments

Comments
 (0)