summaryrefslogtreecommitdiff
path: root/src/if_perl.xs
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-08 17:19:02 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-08 17:19:02 +0200
commitc89d4b35300b98cf68b14c89c8e1add51bd857e3 (patch)
tree467d753ac74270da629887f484f797509696d302 /src/if_perl.xs
parente0be167a805fd547c25ec1ec97fd4c7f13046236 (diff)
downloadvim-git-c89d4b35300b98cf68b14c89c8e1add51bd857e3.tar.gz
patch 8.1.0167: lock flag in new dictitem is reset in many placesv8.1.0167
Problem: Lock flag in new dictitem is reset in many places. Solution: Always reset the lock flag.
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 7b45033ff..40955ebf0 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1200,10 +1200,8 @@ perl_to_vim(SV *sv, typval_T *rettv)
if ((item = dictitem_alloc((char_u *)key)) == NULL)
break;
-
- item->di_tv.v_type = VAR_NUMBER;
- item->di_tv.v_lock = 0;
- item->di_tv.vval.v_number = 0;
+ item->di_tv.v_type = VAR_NUMBER;
+ item->di_tv.vval.v_number = 0;
if (dict_add(dict, item) == FAIL) {
dictitem_free(item);