Skip to content

Commit

Permalink
Avoid shadowing of an existing variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonin Houska committed Jun 26, 2024
1 parent db15da0 commit b50e184
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pg_squeeze.c
Original file line number Diff line number Diff line change
Expand Up @@ -2191,14 +2191,13 @@ perform_initial_load(Relation rel_src, RangeVar *cluster_idx_rv,
{
HeapTuple tup_orig = tup_in;
TupleDesc tup_desc = RelationGetDescr(rel_src);
int i;

heap_deform_tuple(tup_in, tup_desc, values, isnull);

for (i = 0; i < tup_desc->natts; i++)
for (int j = 0; j < tup_desc->natts; j++)
{
if (TupleDescAttr(tup_desc, i)->attisdropped)
isnull[i] = true;
if (TupleDescAttr(tup_desc, j)->attisdropped)
isnull[j] = true;
}

tup_in = heap_form_tuple(tup_desc, values, isnull);
Expand Down

0 comments on commit b50e184

Please sign in to comment.