mirror of
https://github.com/neovim/neovim.git
synced 2025-12-13 18:12:50 +00:00
fix(coverity): CID 509571 Uninitialized variables #30395
/src/nvim/os/pty_proc_unix.c: 416 in pty_proc_init()
410 {
411 PtyProc rv;
412 rv.proc = proc_init(loop, kProcTypePty, data);
413 rv.width = 80;
414 rv.height = 24;
415 rv.tty_fd = -1;
>>> CID 509571: Uninitialized variables (UNINIT)
>>> Using uninitialized value "rv". Field "rv.winsize" is uninitialized.
416 return rv;
This commit is contained in:
@@ -408,7 +408,7 @@ static void chld_handler(uv_signal_t *handle, int signum)
|
||||
|
||||
PtyProc pty_proc_init(Loop *loop, void *data)
|
||||
{
|
||||
PtyProc rv;
|
||||
PtyProc rv = { 0 };
|
||||
rv.proc = proc_init(loop, kProcTypePty, data);
|
||||
rv.width = 80;
|
||||
rv.height = 24;
|
||||
|
||||
Reference in New Issue
Block a user