Minor changes in reviewer's point

This commit is contained in:
erw7
2019-11-15 13:12:48 +09:00
committed by Björn Linse
parent 7aff0340e1
commit b4ff583277
2 changed files with 6 additions and 5 deletions

View File

@@ -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"

View File

@@ -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;