Mercurial > vim
comparison src/eval.c @ 28594:294771aab3ae v8.2.4821
patch 8.2.4821: crash when imported autoload script was deleted
Commit: https://github.com/vim/vim/commit/aac12daa61d9e84616771ec9242fd232f46786e6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 24 21:33:20 2022 +0100
patch 8.2.4821: crash when imported autoload script was deleted
Problem: Crash when imported autoload script was deleted.
Solution: Initialize local variable. (closes https://github.com/vim/vim/issues/10274) Give a more meaningful
error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 24 Apr 2022 22:45:04 +0200 |
parents | a35d54d01ade |
children | daf785caecf2 |
comparison
equal
deleted
inserted
replaced
28593:5315a1f26c11 | 28594:294771aab3ae |
---|---|
6157 if (rettv->v_type == VAR_ANY) | 6157 if (rettv->v_type == VAR_ANY) |
6158 { | 6158 { |
6159 char_u *exp_name; | 6159 char_u *exp_name; |
6160 int cc; | 6160 int cc; |
6161 int idx; | 6161 int idx; |
6162 ufunc_T *ufunc; | 6162 ufunc_T *ufunc = NULL; |
6163 type_T *type; | 6163 type_T *type; |
6164 | 6164 |
6165 // Found script from "import {name} as name", script item name must | 6165 // Found script from "import {name} as name", script item name must |
6166 // follow. "rettv->vval.v_number" has the script ID. | 6166 // follow. "rettv->vval.v_number" has the script ID. |
6167 if (**arg != '.') | 6167 if (**arg != '.') |