0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4821: crash when imported autoload script was deleted

Problem:    Crash when imported autoload script was deleted.
Solution:   Initialize local variable. (closes #10274)  Give a more meaningful
            error message.
This commit is contained in:
Bram Moolenaar
2022-04-24 21:33:20 +01:00
parent 659c240cf7
commit aac12daa61
4 changed files with 25 additions and 1 deletions

View File

@@ -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