]> granicus.if.org Git - vim/commitdiff
patch 8.0.1430: crash when term_start() fails v8.0.1430
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Jan 2018 20:11:03 +0000 (21:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Jan 2018 20:11:03 +0000 (21:11 +0100)
Problem:    Crash when term_start() fails.
Solution:   Initialize winpty_err.

src/terminal.c
src/version.c

index 0cff47a729d1d8c31499e9c93216e181b49ad28a..0d6a9571b407a7c37f991b4a2794bb80217aee32 100644 (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;
index a204e7cfe0710f1f2384cc77b673d0cc484a13b3..7786474d342a9403295c8b12a08f2693593d20a0 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1430,
 /**/
     1429,
 /**/