diff options
| author | Bram Moolenaar <Bram@vim.org> | 2020-04-01 22:11:01 +0200 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2020-04-01 22:11:01 +0200 |
| commit | e69f6d044c420d41dced9ba96a3b90f25788e39a (patch) | |
| tree | 93ea671c8ff74e5ba89808a4561f36cdfc5f4b5c /src/vim9execute.c | |
| parent | a8c1770469504ae66c80bbdb03b6b31641215848 (diff) | |
| download | vim-git-e69f6d044c420d41dced9ba96a3b90f25788e39a.tar.gz | |
patch 8.2.0493: Vim9: some error messages not testedv8.2.0493
Problem: Vim9: some error messages not tested.
Solution: Add more tests. Fix uncovered bugs.
Diffstat (limited to 'src/vim9execute.c')
| -rw-r--r-- | src/vim9execute.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index 89e4f054b..54f95bf66 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -920,7 +920,9 @@ call_def_function( break; default: tv->v_type = VAR_STRING; - tv->vval.v_string = vim_strsave(iptr->isn_arg.string); + tv->vval.v_string = vim_strsave( + iptr->isn_arg.string == NULL + ? (char_u *)"" : iptr->isn_arg.string); } break; |
