mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
This commit is contained in:
parent
af3579d5f7
commit
82ba2891ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user