0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0493: Vim9: some error messages not tested

Problem:    Vim9: some error messages not tested.
Solution:   Add more tests.  Fix uncovered bugs.
This commit is contained in:
Bram Moolenaar
2020-04-01 22:11:01 +02:00
parent a8c1770469
commit e69f6d044c
10 changed files with 80 additions and 11 deletions

View File

@@ -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;