diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-14 12:06:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-14 12:06:16 +0000 |
commit | f8a79fc3468645019532331bf8b36d1f7b403ef4 (patch) | |
tree | 33a4264d26e261e707ac11e01e78f97a50e91ea8 /src/eval.c | |
parent | c2958585f6c7ce4d822d3191ba501c0757b3ffff (diff) |
patch 8.2.3807: Vim9: can call import with star directlyv8.2.3807
Problem: Vim9: can call import with star directly.
Solution: Check that the import used star.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index b2673dcf21..abfde87f35 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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 { |