diff src/eval.c @ 25328:0aac8880d74d v8.2.3201

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".
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Jul 2021 15:15:04 +0200
parents cfbf40f749b0
children f03271631eb5
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -3368,9 +3368,8 @@ eval7t(
 		}
 		else
 		{
-		    where_T where;
-
-		    where.wt_index = 0;
+		    where_T where = WHERE_INIT;
+
 		    where.wt_variable = TRUE;
 		    res = check_type(want_type, actual, TRUE, where);
 		}