mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0167: lock flag in new dictitem is reset in many places
Problem: Lock flag in new dictitem is reset in many places. Solution: Always reset the lock flag.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user