From 7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 21 Feb 2022 18:34:30 +0000 Subject: [PATCH] patch 8.2.4435: dead code in checking map() arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Dead code in checking map() arguments. (Dominique Pellé) Solution: Remove the first return statement. (closes #9815) --- src/evalfunc.c | 1 - src/version.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evalfunc.c b/src/evalfunc.c index cb038e4c8d..38a7aa27cd 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -588,7 +588,6 @@ arg_map_func(type_T *type, type_T *decl_type UNUSED, argcontext_T *context) ? &t_any : expected_ret; if (args[0] == NULL) args[0] = &t_unknown; - return check_arg_type(&t_func_exp, type, context); where.wt_index = 2; return check_type(&t_func_exp, type, TRUE, where); diff --git a/src/version.c b/src/version.c index 6d75667f66..9e21411946 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4435, /**/ 4434, /**/