]> granicus.if.org Git - vim/commitdiff
patch 8.1.2335: error message for function arguments may use NULL pointer v8.1.2335
authorBram Moolenaar <Bram@vim.org>
Fri, 22 Nov 2019 18:29:45 +0000 (19:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 22 Nov 2019 18:29:45 +0000 (19:29 +0100)
Problem:    Error message for function arguments may use NULL pointer.
            (Coverity)
Solution:   Use the original function name.

src/evalfunc.c
src/version.c

index b374d55d4187bc3de44b7a15b290870af8387434..6a9f9d6370da4f4116c63be24f909785cca7e60b 100644 (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;
                }
index c327f98b4b37cd1bc75f26238fac2005437b1737..06edccdae9d075ef2cebf27a8024c0c5156c4782 100644 (file)
@@ -737,6 +737,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2335,
 /**/
     2334,
 /**/