Patch 8.2.3201 (after 8.2.3200)
Problem: Crash in test.
Solution: Initialize "where".
Files: src/eval.c, src/evalvars.c
*** ../vim-8.2.3200/src/eval.c 2021-07-22 14:58:43.469967322 +0200
--- src/eval.c 2021-07-22 15:13:05.972006166 +0200
***************
*** 3368,3376 ****
}
else
{
! where_T where;
- where.wt_index = 0;
where.wt_variable = TRUE;
res = check_type(want_type, actual, TRUE, where);
}
--- 3368,3375 ----
}
else
{
! where_T where = WHERE_INIT;
where.wt_variable = TRUE;
res = check_type(want_type, actual, TRUE, where);
}
*** ../vim-8.2.3200/src/evalvars.c 2021-07-21 22:20:30.062401737 +0200
--- src/evalvars.c 2021-07-22 15:13:24.079965046 +0200
***************
*** 3250,3256 ****
{
scriptitem_T *si = SCRIPT_ITEM(import->imp_sid);
svar_T *sv;
! where_T where;
// imported variable from another script
if ((flags & ASSIGN_NO_DECL) == 0)
--- 3250,3256 ----
{
scriptitem_T *si = SCRIPT_ITEM(import->imp_sid);
svar_T *sv;
! where_T where = WHERE_INIT;
// imported variable from another script
if ((flags & ASSIGN_NO_DECL) == 0)
***************
*** 3260,3266 ****
}
sv = ((svar_T *)si->sn_var_vals.ga_data) + import->imp_var_vals_idx;
- where.wt_index = 0;
where.wt_variable = TRUE;
if (check_typval_type(sv->sv_type, tv, where) == FAIL
|| value_check_lock(sv->sv_tv->v_lock, name, FALSE))
--- 3260,3265 ----
***************
*** 3314,3320 ****
if (var_in_vim9script)
{
! where_T where;
// check the type and adjust to bool if needed
where.wt_index = var_idx;
--- 3313,3319 ----
if (var_in_vim9script)
{
! where_T where = WHERE_INIT;
// check the type and adjust to bool if needed
where.wt_index = var_idx;
*** ../vim-8.2.3200/src/version.c 2021-07-22 14:58:43.477967303 +0200
--- src/version.c 2021-07-22 15:14:14.195851253 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3201,
/**/
--
hundred-and-one symptoms of being an internet addict:
206. You religiously respond immediately to e-mail, while ignoring
your growing pile of snail mail.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202107221314.16MDEq7K279250%40masaka.moolenaar.net.