mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
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.
This commit is contained in:
@@ -2536,7 +2536,7 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref)
|
||||
arg_idx = 0;
|
||||
else if (list->lv_len > MAX_FUNC_ARGS)
|
||||
{
|
||||
emsg_funcname((char *)e_toomanyarg, name);
|
||||
emsg_funcname((char *)e_toomanyarg, s);
|
||||
vim_free(name);
|
||||
goto theend;
|
||||
}
|
||||
|
@@ -737,6 +737,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2335,
|
||||
/**/
|
||||
2334,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user