From 4e329fcaf7122370a6d1815a30aaf29476d3f722 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 7 Mar 2016 15:24:03 +0100 Subject: patch 7.4.1507 Problem: Crash when starting a job fails. Solution: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto) --- src/eval.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eval.c b/src/eval.c index 77638d561..f65c9a0b1 100644 --- a/src/eval.c +++ b/src/eval.c @@ -15262,7 +15262,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv) #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: diff --git a/src/version.c b/src/version.c index 7e86ba6a3..40690ec80 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1507, /**/ 1506, /**/ -- cgit v1.2.1