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:
Jan Edmund Lazo
2020-06-03 02:59:33 -04:00
parent 909af2f3f1
commit ed85d68123

View File

@@ -6120,7 +6120,7 @@ void common_function(typval_T *argvars, typval_T *rettv,
if (tv_list_len(list) == 0) { if (tv_list_len(list) == 0) {
arg_idx = 0; arg_idx = 0;
} else if (tv_list_len(list) > MAX_FUNC_ARGS) { } else if (tv_list_len(list) > MAX_FUNC_ARGS) {
emsg_funcname((char *)e_toomanyarg, name); emsg_funcname((char *)e_toomanyarg, s);
xfree(name); xfree(name);
goto theend; goto theend;
} }