diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-18 19:39:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-18 19:39:25 +0100 |
commit | 3f242a844e83a5a04943869f6e3bcbf8650dc465 (patch) | |
tree | baecafe20d15bd97af0e450c4276ac7c0aef5aee /src/eval.c | |
parent | 9e63f61cb01c70fd71652f54b2d01ee27b2a3534 (diff) |
patch 7.4.1590v7.4.1590
Problem: Warning for shadowed variable. (Christian Brabandt)
Solution: Move the variable into a local block.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 3db58f8d80..5fc4bd4ff3 100644 --- a/src/eval.c +++ b/src/eval.c @@ -21660,7 +21660,6 @@ handle_subscript( char_u *s; int len; typval_T functv; - partial_T *pt = NULL; while (ret == OK && (**arg == '[' @@ -21671,6 +21670,8 @@ handle_subscript( { if (**arg == '(') { + partial_T *pt = NULL; + /* need to copy the funcref so that we can clear rettv */ if (evaluate) { |