passing-by: get_vim_var_str: mark non-null return

This commit is contained in:
Justin M. Keyes
2015-05-11 13:41:24 -04:00
parent 84443f176e
commit 85c51baf06

View File

@@ -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);
} }