diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-05 18:43:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-05 18:43:28 +0100 |
commit | 88b53fd0521d1e62df17a8a1f2181425e9d4854c (patch) | |
tree | 4ae0406155992905321b8d4fe89bc33e15730720 /src/eval.c | |
parent | 74ea88c170f65afa50b2b97e37806d13b4e24cd7 (diff) |
patch 8.1.0564: setting v:errors to wrong type still possiblev8.1.0564
Problem: Setting v:errors to wrong type still possible.
Solution: Return after giving an error message. (Christian Brabandt)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 1dae2bfba9..8839e05724 100644 --- a/src/eval.c +++ b/src/eval.c @@ -7568,7 +7568,10 @@ set_var( return; } else if (v->di_tv.v_type != tv->v_type) + { EMSG2(_("E963: setting %s to value with wrong type"), name); + return; + } } clear_tv(&v->di_tv); |