comparison src/terminal.c @ 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 fb1b162cdcf6
children fe0cec169589
comparison
equal deleted inserted replaced
13110:c3c0bc72c691 13111:149347fda678
3384 job_T *job = NULL; 3384 job_T *job = NULL;
3385 DWORD error; 3385 DWORD error;
3386 HANDLE jo = NULL; 3386 HANDLE jo = NULL;
3387 HANDLE child_process_handle; 3387 HANDLE child_process_handle;
3388 HANDLE child_thread_handle; 3388 HANDLE child_thread_handle;
3389 void *winpty_err; 3389 void *winpty_err = NULL;
3390 void *spawn_config = NULL; 3390 void *spawn_config = NULL;
3391 garray_T ga_cmd, ga_env; 3391 garray_T ga_cmd, ga_env;
3392 char_u *cmd = NULL; 3392 char_u *cmd = NULL;
3393 3393
3394 if (dyn_winpty_init(TRUE) == FAIL) 3394 if (dyn_winpty_init(TRUE) == FAIL)