commit | 3f242a844e83a5a04943869f6e3bcbf8650dc465 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Mar 18 19:39:25 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Mar 18 19:39:25 2016 +0100 |
tree | baecafe20d15bd97af0e450c4276ac7c0aef5aee | |
parent | 9e63f61cb01c70fd71652f54b2d01ee27b2a3534 [diff] [blame] |
patch 7.4.1590 Problem: Warning for shadowed variable. (Christian Brabandt) Solution: Move the variable into a local block.
diff --git a/src/eval.c b/src/eval.c index 3db58f8..5fc4bd4 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -21660,7 +21660,6 @@ char_u *s; int len; typval_T functv; - partial_T *pt = NULL; while (ret == OK && (**arg == '[' @@ -21671,6 +21670,8 @@ { if (**arg == '(') { + partial_T *pt = NULL; + /* need to copy the funcref so that we can clear rettv */ if (evaluate) {