Skip to content

Commit

Permalink
patch 8.0.1430: crash when term_start() fails
Browse files Browse the repository at this point in the history
Problem:    Crash when term_start() fails.
Solution:   Initialize winpty_err.
  • Loading branch information
brammool committed Jan 26, 2018
1 parent ede35bb commit 4aad53c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1430,
/**/
1429,
/**/
Expand Down

0 comments on commit 4aad53c

Please sign in to comment.