changeset 8432:6af4329b5592 v7.4.1507

commit https://github.com/vim/vim/commit/4e329fcaf7122370a6d1815a30aaf29476d3f722 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 7 15:24:03 2016 +0100 patch 7.4.1507 Problem: Crash when starting a job fails. Solution: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Mon, 07 Mar 2016 15:30:05 +0100
parents d036b4be99b0
children 5ae431a522ac
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -15262,7 +15262,8 @@ f_job_start(typval_T *argvars UNUSED, ty
 
 #ifdef FEAT_CHANNEL
     /* 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
 
 theend:
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1507,
+/**/
     1506,
 /**/
     1505,