diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-15 22:12:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-15 22:12:31 +0200 |
commit | 5c805f4566384cbc76c88bfbffb8849498533529 (patch) | |
tree | 51ddf71326ebb6417edca00147216b9802b65dcb /src/nvim/os/shell.c | |
parent | c70ab1a2e2d78832e0246bd64c53c8b92912f0ef (diff) | |
parent | d76a13bb65574f4811313ada6454f7d34cde2a2c (diff) | |
download | rneovim-5c805f4566384cbc76c88bfbffb8849498533529.tar.gz rneovim-5c805f4566384cbc76c88bfbffb8849498533529.tar.bz2 rneovim-5c805f4566384cbc76c88bfbffb8849498533529.zip |
Merge #6528 from ZyX-I/revise-malloc-attr
Revise places where FUNC_ATTR_MALLOC is present
Closes #6521
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r-- | src/nvim/os/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index 5cc9d4b79b..29c0431521 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -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)); |