mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
vim-patch:8.1.2335: error message for function arguments may use NULL pointer
Problem: Error message for function arguments may use NULL pointer.
(Coverity)
Solution: Use the original function name.
2118a30295
This commit is contained in:
@@ -6120,7 +6120,7 @@ void common_function(typval_T *argvars, typval_T *rettv,
|
||||
if (tv_list_len(list) == 0) {
|
||||
arg_idx = 0;
|
||||
} else if (tv_list_len(list) > MAX_FUNC_ARGS) {
|
||||
emsg_funcname((char *)e_toomanyarg, name);
|
||||
emsg_funcname((char *)e_toomanyarg, s);
|
||||
xfree(name);
|
||||
goto theend;
|
||||
}
|
||||
|
Reference in New Issue
Block a user