mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.0494: Vim9: asan error
Problem: Vim9: asan error. Solution: Only get the type when there is one.
This commit is contained in:
parent
e69f6d044c
commit
ea94fbe83b
@ -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 */
|
||||||
|
/**/
|
||||||
|
494,
|
||||||
/**/
|
/**/
|
||||||
493,
|
493,
|
||||||
/**/
|
/**/
|
||||||
|
@ -3767,7 +3767,8 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
|
|||||||
goto theend;
|
goto theend;
|
||||||
|
|
||||||
stack = &cctx->ctx_type_stack;
|
stack = &cctx->ctx_type_stack;
|
||||||
stacktype = ((type_T **)stack->ga_data)[stack->ga_len - 1];
|
stacktype = stack->ga_len == 0 ? &t_void
|
||||||
|
: ((type_T **)stack->ga_data)[stack->ga_len - 1];
|
||||||
if (idx >= 0 && (is_decl || !has_type))
|
if (idx >= 0 && (is_decl || !has_type))
|
||||||
{
|
{
|
||||||
lvar = ((lvar_T *)cctx->ctx_locals.ga_data) + idx;
|
lvar = ((lvar_T *)cctx->ctx_locals.ga_data) + idx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user