diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-10-14 03:41:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-10-14 03:41:59 +0200 |
commit | d04da7cb4afe77de05e4e08e7e86e504be6759e0 (patch) | |
tree | ef6ab3ea578a21cf2b55a630ab6092ad7cd8656b /src/if_lua.c | |
parent | 7bc4f93c07a1e8b17e7d91f814b9801bd611d569 (diff) | |
download | vim-git-d04da7cb4afe77de05e4e08e7e86e504be6759e0.tar.gz |
updated for version 7.3.689v7.3.689
Problem: MzScheme and Lua may use a NULL string.
Solution: Use an empty string instead of NULL. (Yukihiro Nakadaira)
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index e873b6bf7..ce65fd2f6 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -464,7 +464,8 @@ luaV_pushtypval(lua_State *L, typval_T *tv) switch (tv->v_type) { case VAR_STRING: - lua_pushstring(L, (char *) tv->vval.v_string); + lua_pushstring(L, tv->vval.v_string == NULL + ? "" : (char *)tv->vval.v_string); break; case VAR_NUMBER: lua_pushinteger(L, (int) tv->vval.v_number); |