]> granicus.if.org Git - vim/commitdiff
patch 8.2.3956: duplicate assignment v8.2.3956
authorzeertzjq <zeertzjq@outlook.com>
Fri, 31 Dec 2021 15:21:53 +0000 (15:21 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 31 Dec 2021 15:21:53 +0000 (15:21 +0000)
Problem:    Duplicate assignment.
Solution:   Remove the second assignment. (closes #9442)

src/evalfunc.c
src/version.c

index f3105200fd1901bdeba1c0ac537bbe44d9c53bbe..b9310c1933f816e790a99b093fbff1ead17d315e 100644 (file)
@@ -4847,7 +4847,6 @@ f_getregtype(typval_T *argvars, typval_T *rettv)
                sprintf((char *)buf + 1, "%ld", reglen + 1);
                break;
     }
-    rettv->v_type = VAR_STRING;
     rettv->vval.v_string = vim_strsave(buf);
 }
 
index 8505282d7307eea920ace460d9680451be6b8f4a..d623c586ae9df1d0ac71a4280a20e6d7a5cc3df9 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3956,
 /**/
     3955,
 /**/