mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Replace strdup
calls by xstrdup
This commit is contained in:
parent
fdec1d126f
commit
b6d458e137
@ -79,13 +79,13 @@ char ** shell_build_argv(char_u *cmd, char_u *extra_shell_opt)
|
||||
|
||||
if (extra_shell_opt != NULL) {
|
||||
// Push a copy of `extra_shell_opt`
|
||||
rv[i++] = strdup((char *)extra_shell_opt);
|
||||
rv[i++] = xstrdup((char *)extra_shell_opt);
|
||||
}
|
||||
|
||||
if (cmd != NULL) {
|
||||
// Split 'shellcmdflag'
|
||||
i += tokenize(p_shcf, rv + i);
|
||||
rv[i++] = strdup((char *)cmd);
|
||||
rv[i++] = xstrdup((char *)cmd);
|
||||
}
|
||||
|
||||
rv[i] = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user