mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
passing-by: get_vim_var_str: mark non-null return
This commit is contained in:
parent
84443f176e
commit
85c51baf06
@ -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.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user