diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-01 21:38:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-01 21:38:53 +0200 |
commit | ca51cc0a335d0c449784440501c7d46ee8f84ce4 (patch) | |
tree | d55f7f7a04a28baa10376338ce08f678a9c860dd /src/vim9compile.c | |
parent | d877a5700fe9d5b92562514924549316382384aa (diff) | |
download | vim-git-ca51cc0a335d0c449784440501c7d46ee8f84ce4.tar.gz |
patch 8.2.2688: Vim9: crash when using s: for script variablev8.2.2688
Problem: Vim9: crash when using s: for script variable.
Solution: Pass the end pointer. (closes #8045)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index ca1c89cc1..3fb4a8d20 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2822,7 +2822,7 @@ compile_load( case 'v': res = generate_LOADV(cctx, name, error); break; case 's': res = compile_load_scriptvar(cctx, name, - NULL, NULL, error); + NULL, &end, error); break; case 'g': if (vim_strchr(name, AUTOLOAD_CHAR) == NULL) isn_type = ISN_LOADG; |