changeset 26855:08508fc809cc v8.2.3956

patch 8.2.3956: duplicate assignment Commit: https://github.com/vim/vim/commit/4b1478093eb8b8bebc94b1f596e0afc25db4d189 Author: zeertzjq <zeertzjq@outlook.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 Dec 2021 16:30:03 +0100
parents 6dc1e864bd3d
children ecd25f651e29
files src/evalfunc.c src/version.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }
 
--- 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,