Content-Length: 267719 | pFad | http://github.com/postgrespro/postgres_cluster/commit/34602b0a1dfd41400d376e73e41ad868ad2d3ce8

80 Remove unused variable in non-assert-enabled build · postgrespro/postgres_cluster@34602b0 · GitHub
Skip to content

Commit 34602b0

Browse files
committed
Remove unused variable in non-assert-enabled build
Use field of structure in Assert directly Jeff Janes
1 parent 2fa55f2 commit 34602b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/access/common/indextuple.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,10 @@ index_truncate_tuple(TupleDesc tupleDescriptor, IndexTuple olditup,
459459
Datum values[INDEX_MAX_KEYS];
460460
bool isnull[INDEX_MAX_KEYS];
461461
IndexTuple newitup;
462-
int indnatts = tupleDescriptor->natts;
463462

464-
Assert(indnatts <= INDEX_MAX_KEYS);
463+
Assert(tupleDescriptor->natts <= INDEX_MAX_KEYS);
465464
Assert(new_indnatts > 0);
466-
Assert(new_indnatts < indnatts);
465+
Assert(new_indnatts < tupleDescriptor->natts);
467466

468467
index_deform_tuple(olditup, tupleDescriptor, values, isnull);
469468

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/34602b0a1dfd41400d376e73e41ad868ad2d3ce8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy