mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Fix jumps depending on unitialized values
Reported by valgrind
This commit is contained in:
parent
12fba26110
commit
def747da7f
@ -10050,7 +10050,7 @@ getwinvar (
|
|||||||
char_u *varname;
|
char_u *varname;
|
||||||
dictitem_T *v;
|
dictitem_T *v;
|
||||||
tabpage_T *tp = NULL;
|
tabpage_T *tp = NULL;
|
||||||
tabpage_T *oldtabpage;
|
tabpage_T *oldtabpage = NULL;
|
||||||
int done = FALSE;
|
int done = FALSE;
|
||||||
|
|
||||||
if (off == 1)
|
if (off == 1)
|
||||||
|
@ -47,6 +47,7 @@ RStream * rstream_new(rstream_cb cb,
|
|||||||
rv->stream = NULL;
|
rv->stream = NULL;
|
||||||
rv->fread_idle = NULL;
|
rv->fread_idle = NULL;
|
||||||
rv->free_handle = false;
|
rv->free_handle = false;
|
||||||
|
rv->file_type = UV_UNKNOWN_HANDLE;
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user