Mercurial > vim
comparison src/channel.c @ 18937:ab97d1aea4aa v8.2.0029
patch 8.2.0029: MS-Windows: crash with empty job command
Commit: https://github.com/vim/vim/commit/a27655ef6d0001c7c2265ea682455ec82acee826
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 21 22:22:01 2019 +0100
patch 8.2.0029: MS-Windows: crash with empty job command
Problem: MS-Windows: crash with empty job command.
Solution: Check for NULL result. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/5390)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 Dec 2019 22:30:03 +0100 |
parents | c469e1930456 |
children | 70d6614aaf28 |
comparison
equal
deleted
inserted
replaced
18936:ddd9455af2d3 | 18937:ab97d1aea4aa |
---|---|
5945 goto theend; | 5945 goto theend; |
5946 #ifndef USE_ARGV | 5946 #ifndef USE_ARGV |
5947 if (win32_build_cmd(l, &ga) == FAIL) | 5947 if (win32_build_cmd(l, &ga) == FAIL) |
5948 goto theend; | 5948 goto theend; |
5949 cmd = ga.ga_data; | 5949 cmd = ga.ga_data; |
5950 if (cmd == NULL) | |
5951 { | |
5952 emsg(_(e_invarg)); | |
5953 goto theend; | |
5954 } | |
5950 #endif | 5955 #endif |
5951 } | 5956 } |
5952 | 5957 |
5953 // Save the command used to start the job. | 5958 // Save the command used to start the job. |
5954 job->jv_argv = argv; | 5959 job->jv_argv = argv; |