eval: Fix save_tv_as_string to handle non-string types

This commit is contained in:
Thiago de Arruda
2014-10-01 19:43:00 -03:00
parent 93a45ccc25
commit ba1026c2c7

View File

@@ -15148,8 +15148,6 @@ static char_u *save_tv_as_string(typval_T *tv, ssize_t *len)
ret = vim_strsave(ret); ret = vim_strsave(ret);
} else { } else {
ret = NULL; ret = NULL;
}
if (tv->v_type != VAR_STRING) {
*len = -1; *len = -1;
} }
return ret; return ret;