mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
No OOM in vim_strsave_escaped[_ext]()
This commit is contained in:
@@ -18603,8 +18603,6 @@ int store_session_globals(FILE *fd)
|
||||
* CR into \n and \r. */
|
||||
p = vim_strsave_escaped(get_tv_string(&this_var->di_tv),
|
||||
(char_u *)"\\\"\n\r");
|
||||
if (p == NULL) /* out of memory */
|
||||
break;
|
||||
for (t = p; *t != NUL; ++t)
|
||||
if (*t == '\n')
|
||||
*t = 'n';
|
||||
|
Reference in New Issue
Block a user