From 85c51baf064ed382d4abb2a64930667876f86afb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 11 May 2015 13:41:24 -0400 Subject: [PATCH] passing-by: get_vim_var_str: mark non-null return --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 366afb1496..16b368c555 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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); }