summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-24 21:33:20 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-24 21:33:20 +0100
commitaac12daa61d9e84616771ec9242fd232f46786e6 (patch)
tree565662e4cac5fd719c5ef61ac483574c8ab163a8 /src/eval.c
parent659c240cf769925ff432b88df8719e7ace4629b0 (diff)
patch 8.2.4821: crash when imported autoload script was deletedv8.2.4821
Problem: Crash when imported autoload script was deleted. Solution: Initialize local variable. (closes #10274) Give a more meaningful error message.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 61b09fb6b0..f7445bf40f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -6159,7 +6159,7 @@ handle_subscript(
char_u *exp_name;
int cc;
int idx;
- ufunc_T *ufunc;
+ ufunc_T *ufunc = NULL;
type_T *type;
// Found script from "import {name} as name", script item name must