diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-22 19:29:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-22 19:29:45 +0100 |
commit | 2118a302957dea352174722bf355376901f49b9b (patch) | |
tree | 0aa5ae31fa0783317d850d13b57b45e308750d31 /src/evalfunc.c | |
parent | fd318115a5ee813cba69aa7fc7f5f42f08f10ee4 (diff) |
patch 8.1.2335: error message for function arguments may use NULL pointerv8.1.2335
Problem: Error message for function arguments may use NULL pointer.
(Coverity)
Solution: Use the original function name.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index b374d55d41..6a9f9d6370 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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; } |