mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
passing-by: get_vim_var_str: mark non-null return
This commit is contained in:
@@ -16294,7 +16294,7 @@ long get_vim_var_nr(int idx)
|
|||||||
/*
|
/*
|
||||||
* Get string v: variable value. Uses a static buffer, can only be used once.
|
* Get string v: variable value. Uses a static buffer, can only be used once.
|
||||||
*/
|
*/
|
||||||
char_u *get_vim_var_str(int idx)
|
char_u *get_vim_var_str(int idx) FUNC_ATTR_NONNULL_RET
|
||||||
{
|
{
|
||||||
return get_tv_string(&vimvars[idx].vv_tv);
|
return get_tv_string(&vimvars[idx].vv_tv);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user