mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
os/shell: Remove FUNC_ATTR_MALLOC from shell_build_argv
Returns an array of allocated strings.
This commit is contained in:
parent
ac47e64eca
commit
d76a13bb65
@ -47,7 +47,7 @@ typedef struct {
|
||||
/// @param extra_args Extra arguments to the shell, or NULL.
|
||||
/// @return Newly allocated argument vector. Must be freed with shell_free_argv.
|
||||
char **shell_build_argv(const char *cmd, const char *extra_args)
|
||||
FUNC_ATTR_NONNULL_RET FUNC_ATTR_MALLOC
|
||||
FUNC_ATTR_NONNULL_RET
|
||||
{
|
||||
size_t argc = tokenize(p_sh, NULL) + (cmd ? tokenize(p_shcf, NULL) : 0);
|
||||
char **rv = xmalloc((argc + 4) * sizeof(*rv));
|
||||
|
Loading…
Reference in New Issue
Block a user