diff options
author | erw7 <erw7.github@gmail.com> | 2019-11-15 13:12:48 +0900 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-01-17 11:36:28 +0100 |
commit | b4ff583277ce16584f20868cef6697f52bebc7d4 (patch) | |
tree | 1a0a7f69fe31df511afa57a7579c5446cdb77be9 /src | |
parent | 7aff0340e1f0550ff1c04dc17474d7cb6e57a89b (diff) | |
download | rneovim-b4ff583277ce16584f20868cef6697f52bebc7d4.tar.gz rneovim-b4ff583277ce16584f20868cef6697f52bebc7d4.tar.bz2 rneovim-b4ff583277ce16584f20868cef6697f52bebc7d4.zip |
Minor changes in reviewer's point
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/os/os_win_conpty.c | 3 | ||||
-rw-r--r-- | src/nvim/os/pty_process_win.c | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/os/os_win_conpty.c b/src/nvim/os/os_win_conpty.c index bf6ec62818..887286b59f 100644 --- a/src/nvim/os/os_win_conpty.c +++ b/src/nvim/os/os_win_conpty.c @@ -1,3 +1,6 @@ +// This is an open source non-commercial project. Dear PVS-Studio, please check +// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include <uv.h> #include "nvim/vim.h" diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c index ffdececf94..0cd730401a 100644 --- a/src/nvim/os/pty_process_win.c +++ b/src/nvim/os/pty_process_win.c @@ -183,11 +183,9 @@ int pty_process_spawn(PtyProcess *ptyproc) uv_run(&proc->loop->uv, UV_RUN_ONCE); } - if (ptyproc->type == PTY_TYPE_CONPTY) { - ptyproc->object.conpty = conpty_object; - } else { - ptyproc->object.winpty = winpty_object; - } + (ptyproc->type == PTY_TYPE_CONPTY) ? + (void *)(ptyproc->object.conpty = conpty_object) : + (void *)(ptyproc->object.winpty = winpty_object); ptyproc->process_handle = process_handle; winpty_object = NULL; conpty_object = NULL; |