aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-15 19:19:22 +0300
committerZyX <kp-pav@yandex.ru>2017-04-15 19:19:22 +0300
commit82ba2891ae905fabacafc58daebedc80533b8334 (patch)
tree84591c78ad7ea471bd59c16db6422d9db3d4a45f
parentaf3579d5f7bc86a25fd73e94c6de0e73ae9d8e12 (diff)
downloadrneovim-82ba2891ae905fabacafc58daebedc80533b8334.tar.gz
rneovim-82ba2891ae905fabacafc58daebedc80533b8334.tar.bz2
rneovim-82ba2891ae905fabacafc58daebedc80533b8334.zip
eval/typval: Remove FUNC_ATTR_MALLOC from tv_list_alloc_ret
Same as tv_list_alloc, but additionally ret_tv receives pointer to the newly allocated list.
-rw-r--r--src/nvim/eval/typval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index 9e954be9b3..70ec3dfe39 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -1576,7 +1576,7 @@ void tv_dict_set_keys_readonly(dict_T *const dict)
///
/// @return [allocated] pointer to the created list.
list_T *tv_list_alloc_ret(typval_T *const ret_tv)
- FUNC_ATTR_NONNULL_ALL FUNC_ATTR_MALLOC
+ FUNC_ATTR_NONNULL_ALL
{
list_T *const l = tv_list_alloc();
ret_tv->vval.v_list = l;