comparison src/vim9execute.c @ 28233:e31f1a949d4e v8.2.4643

patch 8.2.4643: Vim9: variable may be locked unintentionally Commit: https://github.com/vim/vim/commit/24565cf27bc28cbd73f10e5ddf1e4ef53038a426 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 28 18:16:52 2022 +0100 patch 8.2.4643: Vim9: variable may be locked unintentionally Problem: Vim9: variable may be locked unintentionally. Solution: Clear "v_lock". (closes https://github.com/vim/vim/issues/10036)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Mar 2022 19:30:03 +0200
parents 66b245d84f37
children 4b322951ebac
comparison
equal deleted inserted replaced
28232:d041bcc0d3d6 28233:e31f1a949d4e
935 935
936 // Default return value is zero. 936 // Default return value is zero.
937 tv = STACK_TV_BOT(-1); 937 tv = STACK_TV_BOT(-1);
938 tv->v_type = VAR_NUMBER; 938 tv->v_type = VAR_NUMBER;
939 tv->vval.v_number = 0; 939 tv->vval.v_number = 0;
940 tv->v_lock = 0;
940 941
941 return OK; 942 return OK;
942 } 943 }
943 944
944 // Ugly global to avoid passing the execution context around through many 945 // Ugly global to avoid passing the execution context around through many