• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisão0aac8880d74d1ad8c044b8db0dc8eb996269c90c (tree)
Hora2021-07-22 22:15:04
AutorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Mensagem de Log

patch 8.2.3201: crash in test

Commit: https://github.com/vim/vim/commit/2b59df00d80ea8d2c0fcf4f4ae9a018c1790206f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 22 15:14:25 2021 +0200

patch 8.2.3201: crash in test
Problem: Crash in test.
Solution: Initialize "where".

Mudança Sumário

Diff

diff -r 2c14f38d3a73 -r 0aac8880d74d src/eval.c
--- a/src/eval.c Thu Jul 22 15:00:06 2021 +0200
+++ b/src/eval.c Thu Jul 22 15:15:04 2021 +0200
@@ -3368,9 +3368,8 @@
33683368 }
33693369 else
33703370 {
3371- where_T where;
3372-
3373- where.wt_index = 0;
3371+ where_T where = WHERE_INIT;
3372+
33743373 where.wt_variable = TRUE;
33753374 res = check_type(want_type, actual, TRUE, where);
33763375 }
diff -r 2c14f38d3a73 -r 0aac8880d74d src/evalvars.c
--- a/src/evalvars.c Thu Jul 22 15:00:06 2021 +0200
+++ b/src/evalvars.c Thu Jul 22 15:15:04 2021 +0200
@@ -3250,7 +3250,7 @@
32503250 {
32513251 scriptitem_T *si = SCRIPT_ITEM(import->imp_sid);
32523252 svar_T *sv;
3253- where_T where;
3253+ where_T where = WHERE_INIT;
32543254
32553255 // imported variable from another script
32563256 if ((flags & ASSIGN_NO_DECL) == 0)
@@ -3260,7 +3260,6 @@
32603260 }
32613261 sv = ((svar_T *)si->sn_var_vals.ga_data) + import->imp_var_vals_idx;
32623262
3263- where.wt_index = 0;
32643263 where.wt_variable = TRUE;
32653264 if (check_typval_type(sv->sv_type, tv, where) == FAIL
32663265 || value_check_lock(sv->sv_tv->v_lock, name, FALSE))
@@ -3314,7 +3313,7 @@
33143313
33153314 if (var_in_vim9script)
33163315 {
3317- where_T where;
3316+ where_T where = WHERE_INIT;
33183317
33193318 // check the type and adjust to bool if needed
33203319 where.wt_index = var_idx;
diff -r 2c14f38d3a73 -r 0aac8880d74d src/version.c
--- a/src/version.c Thu Jul 22 15:00:06 2021 +0200
+++ b/src/version.c Thu Jul 22 15:15:04 2021 +0200
@@ -756,6 +756,8 @@
756756 static int included_patches[] =
757757 { /* Add new patch number below this line */
758758 /**/
759+ 3201,
760+/**/
759761 3200,
760762 /**/
761763 3199,
Show on old repository browser