changeset 13111:149347fda678 v8.0.1430

patch 8.0.1430: crash when term_start() fails commit https://github.com/vim/vim/commit/4aad53c36998c77ee119c6a46d002460876c2cbb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 26 21:11:03 2018 +0100 patch 8.0.1430: crash when term_start() fails Problem: Crash when term_start() fails. Solution: Initialize winpty_err.
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Jan 2018 21:15:06 +0100
parents c3c0bc72c691
children 2b395caa3880
files src/terminal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,