diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-13 20:12:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-13 20:12:13 +0200 |
commit | 78a9c2e670d29349404b346e0aa90264cab19e9b (patch) | |
tree | 5a1b0a7049321c30f7081c49f2faa3d27c6429c5 /src/eval.c | |
parent | aacc966c5d0ed91e33ed32b08f17cf4df3ca1394 (diff) |
patch 8.2.3340: accessing uninitialized pointerv8.2.3340
Problem: Accessing uninitialized pointer.
Solution: Set pointer to NULL.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 0dd2058872..1fd4765c76 100644 --- a/src/eval.c +++ b/src/eval.c @@ -906,6 +906,7 @@ get_lval( { // using local variable lp->ll_tv = lval_root; + v = NULL; } else { @@ -967,6 +968,7 @@ get_lval( } if (in_vim9script() && lp->ll_valtype == NULL + && v != NULL && lp->ll_tv == &v->di_tv && ht != NULL && ht == get_script_local_ht()) { |