diff 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
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -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
     }