0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

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 #5390)
This commit is contained in:
Bram Moolenaar
2019-12-21 22:22:01 +01:00
parent 3ba35409a6
commit a27655ef6d
3 changed files with 13 additions and 7 deletions

View File

@@ -5947,6 +5947,11 @@ job_start(
if (win32_build_cmd(l, &ga) == FAIL)
goto theend;
cmd = ga.ga_data;
if (cmd == NULL)
{
emsg(_(e_invarg));
goto theend;
}
#endif
}