summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-26 21:11:03 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-26 21:11:03 +0100
commit4aad53c36998c77ee119c6a46d002460876c2cbb (patch)
treea597ec30d031a0a13db842c52942816403a4df83
parentede35bbbd05306097bf3f4d603f2248ed1f4c5f1 (diff)
patch 8.0.1430: crash when term_start() failsv8.0.1430
Problem: Crash when term_start() fails. Solution: Initialize winpty_err.
-rw-r--r--src/terminal.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 0cff47a729..0d6a9571b4 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index a204e7cfe0..7786474d34 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1430,
+/**/
1429,
/**/
1428,