summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c3
1 files changed, 2 insertions, 1 deletions
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: