mirror of
https://github.com/vim/vim.git
synced 2025-09-05 21:43:39 -04:00
patch 8.2.0566: Vim9: variable can be used uninitialized
Problem: Vim9: variable can be used uninitialized. Solution: Jump to after where variable is used.
This commit is contained in:
parent
675f716efb
commit
1a2f4bf6c8
@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
566,
|
||||||
/**/
|
/**/
|
||||||
565,
|
565,
|
||||||
/**/
|
/**/
|
||||||
|
@ -524,7 +524,7 @@ call_def_function(
|
|||||||
else
|
else
|
||||||
argc -= vararg_count;
|
argc -= vararg_count;
|
||||||
if (exe_newlist(vararg_count, &ectx) == FAIL)
|
if (exe_newlist(vararg_count, &ectx) == FAIL)
|
||||||
goto failed;
|
goto failed_early;
|
||||||
if (defcount > 0)
|
if (defcount > 0)
|
||||||
// Move varargs list to below missing default arguments.
|
// Move varargs list to below missing default arguments.
|
||||||
*STACK_TV_BOT(defcount- 1) = *STACK_TV_BOT(-1);
|
*STACK_TV_BOT(defcount- 1) = *STACK_TV_BOT(-1);
|
||||||
@ -1773,7 +1773,7 @@ failed:
|
|||||||
// When failed need to unwind the call stack.
|
// When failed need to unwind the call stack.
|
||||||
while (ectx.ec_frame != initial_frame_ptr)
|
while (ectx.ec_frame != initial_frame_ptr)
|
||||||
func_return(&ectx);
|
func_return(&ectx);
|
||||||
|
failed_early:
|
||||||
for (idx = 0; idx < ectx.ec_stack.ga_len; ++idx)
|
for (idx = 0; idx < ectx.ec_stack.ga_len; ++idx)
|
||||||
clear_tv(STACK_TV(idx));
|
clear_tv(STACK_TV(idx));
|
||||||
vim_free(ectx.ec_stack.ga_data);
|
vim_free(ectx.ec_stack.ga_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user