Skip to content

Commit 3f242a8

Browse files
committed
patch 7.4.1590
Problem: Warning for shadowed variable. (Christian Brabandt) Solution: Move the variable into a local block.
1 parent 9e63f61 commit 3f242a8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/eval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21660,7 +21660,6 @@ handle_subscript(
2166021660
char_u *s;
2166121661
int len;
2166221662
typval_T functv;
21663-
partial_T *pt = NULL;
2166421663

2166521664
while (ret == OK
2166621665
&& (**arg == '['
@@ -21671,6 +21670,8 @@ handle_subscript(
2167121670
{
2167221671
if (**arg == '(')
2167321672
{
21673+
partial_T *pt = NULL;
21674+
2167421675
/* need to copy the funcref so that we can clear rettv */
2167521676
if (evaluate)
2167621677
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1590,
751753
/**/
752754
1589,
753755
/**/

0 commit comments

Comments
 (0)