mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
No OOM in vim_strsave_escaped[_ext]()
This commit is contained in:
@@ -318,8 +318,6 @@ int call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg)
|
||||
|
||||
if (*p_sxe != NUL && STRCMP(p_sxq, "(") == 0) {
|
||||
ecmd = vim_strsave_escaped_ext(cmd, p_sxe, '^', FALSE);
|
||||
if (ecmd == NULL)
|
||||
ecmd = cmd;
|
||||
}
|
||||
ncmd = xmalloc(STRLEN(ecmd) + STRLEN(p_sxq) * 2 + 1);
|
||||
STRCPY(ncmd, p_sxq);
|
||||
|
Reference in New Issue
Block a user