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;

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1430,
/**/
1429,
/**/