From: Bram Moolenaar Date: Fri, 26 Jan 2018 20:11:03 +0000 (+0100) Subject: patch 8.0.1430: crash when term_start() fails X-Git-Tag: v8.0.1430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aad53c36998c77ee119c6a46d002460876c2cbb;p=vim patch 8.0.1430: crash when term_start() fails Problem: Crash when term_start() fails. Solution: Initialize winpty_err. --- diff --git a/src/terminal.c b/src/terminal.c index 0cff47a72..0d6a9571b 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 a204e7cfe..7786474d3 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1430, /**/ 1429, /**/