comparison src/eval.c @ 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 800423dbc260
children 0e6fd2f802b3
comparison
equal deleted inserted replaced
8431:d036b4be99b0 8432:6af4329b5592
15260 mch_start_job((char *)cmd, job, &opt); 15260 mch_start_job((char *)cmd, job, &opt);
15261 #endif 15261 #endif
15262 15262
15263 #ifdef FEAT_CHANNEL 15263 #ifdef FEAT_CHANNEL
15264 /* If the channel is reading from a buffer, write lines now. */ 15264 /* 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);
15266 #endif 15267 #endif
15267 15268
15268 theend: 15269 theend:
15269 #ifdef USE_ARGV 15270 #ifdef USE_ARGV
15270 vim_free(argv); 15271 vim_free(argv);