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

updated for version 7.3.689

Problem:    MzScheme and Lua may use a NULL string.
Solution:   Use an empty string instead of NULL. (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2012-10-14 03:41:59 +02:00
parent 7bc4f93c07
commit d04da7cb4a
3 changed files with 6 additions and 2 deletions

View File

@@ -2649,7 +2649,8 @@ vim_to_mzscheme(typval_T *vim_value, int depth, Scheme_Hash_Table *visited)
new_value = FALSE;
else if (vim_value->v_type == VAR_STRING)
{
result = scheme_make_string((char *)vim_value->vval.v_string);
result = scheme_make_string(vim_value->vval.v_string == NULL
? "" : (char *)vim_value->vval.v_string);
MZ_GC_CHECK();
}
else if (vim_value->v_type == VAR_NUMBER)