0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.0.1430: crash when term_start() fails

Problem:    Crash when term_start() fails.
Solution:   Initialize winpty_err.
This commit is contained in:
Bram Moolenaar
2018-01-26 21:11:03 +01:00
parent ede35bbbd0
commit 4aad53c369
2 changed files with 3 additions and 1 deletions

View File

@@ -3386,7 +3386,7 @@ term_and_job_init(
HANDLE jo = NULL;
HANDLE child_process_handle;
HANDLE child_thread_handle;
void *winpty_err;
void *winpty_err = NULL;
void *spawn_config = NULL;
garray_T ga_cmd, ga_env;
char_u *cmd = NULL;