0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3807: Vim9: can call import with star directly

Problem:    Vim9: can call import with star directly.
Solution:   Check that the import used star.
This commit is contained in:
Bram Moolenaar
2021-12-14 12:06:16 +00:00
parent c2958585f6
commit f8a79fc346
4 changed files with 28 additions and 2 deletions

View File

@@ -2001,7 +2001,7 @@ eval_func(
// Need to make a copy, in case evaluating the arguments makes
// the name invalid.
s = vim_strsave(s);
if (s == NULL || (flags & EVAL_CONSTANT))
if (s == NULL || *s == NUL || (flags & EVAL_CONSTANT))
ret = FAIL;
else
{