0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -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:
Bram Moolenaar
2019-11-22 19:29:45 +01:00
parent fd318115a5
commit 2118a30295
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -737,6 +737,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2335,
/**/
2334,
/**/