commit | f8a79fc3468645019532331bf8b36d1f7b403ef4 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Dec 14 12:06:16 2021 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Dec 14 12:06:16 2021 +0000 |
tree | 33a4264d26e261e707ac11e01e78f97a50e91ea8 | |
parent | c2958585f6c7ce4d822d3191ba501c0757b3ffff [diff] [blame] |
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.
diff --git a/src/eval.c b/src/eval.c index b2673dc..abfde87 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -2001,7 +2001,7 @@ // 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 {