diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-12-31 15:21:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 15:21:53 +0000 |
commit | 4b1478093eb8b8bebc94b1f596e0afc25db4d189 (patch) | |
tree | 5a20a52f490a80f7378ebe20caadeecb9b4a3e7f /src/evalfunc.c | |
parent | eb822a280cf4706f7e67319ced1cdf3243b27e20 (diff) |
patch 8.2.3956: duplicate assignmentv8.2.3956
Problem: Duplicate assignment.
Solution: Remove the second assignment. (closes #9442)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index f3105200fd..b9310c1933 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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); } |