summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-01 22:11:01 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-01 22:11:01 +0200
commite69f6d044c420d41dced9ba96a3b90f25788e39a (patch)
tree93ea671c8ff74e5ba89808a4561f36cdfc5f4b5c /src/vim9execute.c
parenta8c1770469504ae66c80bbdb03b6b31641215848 (diff)
downloadvim-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.c4
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;