# HG changeset patch # User Bram Moolenaar # Date 1640964603 -3600 # Node ID 08508fc809cc3fb054c2fc05c19fce69d3f07382 # Parent 6dc1e864bd3da313f07c24401b8c29babfba12d5 patch 8.2.3956: duplicate assignment Commit: https://github.com/vim/vim/commit/4b1478093eb8b8bebc94b1f596e0afc25db4d189 Author: zeertzjq Date: Fri Dec 31 15:21:53 2021 +0000 patch 8.2.3956: duplicate assignment Problem: Duplicate assignment. Solution: Remove the second assignment. (closes https://github.com/vim/vim/issues/9442) diff --git a/src/evalfunc.c b/src/evalfunc.c --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4847,7 +4847,6 @@ f_getregtype(typval_T *argvars, typval_T sprintf((char *)buf + 1, "%ld", reglen + 1); break; } - rettv->v_type = VAR_STRING; rettv->vval.v_string = vim_strsave(buf); } diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 3956, +/**/ 3955, /**/ 3954,